mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
removed CSS contain from widgets
This commit is contained in:
parent
faab6be48d
commit
6d51593b7d
@ -71,7 +71,6 @@ export default class DesktopLayout {
|
|||||||
.command("showRecentChanges"))
|
.command("showRecentChanges"))
|
||||||
.child(new SpacerWidget(40, 0))
|
.child(new SpacerWidget(40, 0))
|
||||||
.child(new FlexContainer("column")
|
.child(new FlexContainer("column")
|
||||||
.overflowing()
|
|
||||||
.id("plugin-buttons"))
|
.id("plugin-buttons"))
|
||||||
.child(new SpacerWidget(0, 1000))
|
.child(new SpacerWidget(0, 1000))
|
||||||
.child(new ProtectedSessionStatusWidget())
|
.child(new ProtectedSessionStatusWidget())
|
||||||
@ -87,7 +86,7 @@ export default class DesktopLayout {
|
|||||||
.child(new FlexContainer('column')
|
.child(new FlexContainer('column')
|
||||||
.id('rest-pane')
|
.id('rest-pane')
|
||||||
.css("flex-grow", "1")
|
.css("flex-grow", "1")
|
||||||
.child(new FlexContainer('row').overflowing()
|
.child(new FlexContainer('row')
|
||||||
.child(new TabRowWidget())
|
.child(new TabRowWidget())
|
||||||
.child(new TitleBarButtonsWidget())
|
.child(new TitleBarButtonsWidget())
|
||||||
.css('height', '40px')
|
.css('height', '40px')
|
||||||
@ -103,7 +102,6 @@ export default class DesktopLayout {
|
|||||||
.child(new FlexContainer('row').class('title-row')
|
.child(new FlexContainer('row').class('title-row')
|
||||||
.css('align-items: center;')
|
.css('align-items: center;')
|
||||||
.cssBlock('.title-row > * { margin: 5px; }')
|
.cssBlock('.title-row > * { margin: 5px; }')
|
||||||
.overflowing()
|
|
||||||
.child(new NoteIconWidget())
|
.child(new NoteIconWidget())
|
||||||
.child(new NoteTitleWidget())
|
.child(new NoteTitleWidget())
|
||||||
.child(new SpacerWidget(0, 1))
|
.child(new SpacerWidget(0, 1))
|
||||||
|
@ -98,7 +98,7 @@ export default class MobileLayout {
|
|||||||
.child(new ScreenContainer("detail", "column")
|
.child(new ScreenContainer("detail", "column")
|
||||||
.class("d-sm-flex d-md-flex d-lg-flex d-xl-flex col-12 col-sm-7 col-md-8 col-lg-8")
|
.class("d-sm-flex d-md-flex d-lg-flex d-xl-flex col-12 col-sm-7 col-md-8 col-lg-8")
|
||||||
.css('max-height', '100%')
|
.css('max-height', '100%')
|
||||||
.child(new FlexContainer('row').overflowing()
|
.child(new FlexContainer('row')
|
||||||
.css('font-size', 'larger')
|
.css('font-size', 'larger')
|
||||||
.css('align-items', 'center')
|
.css('align-items', 'center')
|
||||||
.css('position', 'fixed')
|
.css('position', 'fixed')
|
||||||
|
@ -54,7 +54,7 @@ function setupRightPaneResizer() {
|
|||||||
leftInstance = Split(['#center-pane', '#right-pane'], {
|
leftInstance = Split(['#center-pane', '#right-pane'], {
|
||||||
sizes: [100 - rightPaneWidth, rightPaneWidth],
|
sizes: [100 - rightPaneWidth, rightPaneWidth],
|
||||||
gutterSize: 5,
|
gutterSize: 5,
|
||||||
onDragEnd: sizes => options.save('rightPaneWidth', Math.round(sizes[0]))
|
onDragEnd: sizes => options.save('rightPaneWidth', Math.round(sizes[1]))
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -237,7 +237,6 @@ export default class AttributeDetailWidget extends NoteContextAwareWidget {
|
|||||||
utils.bindElShortcut(this.$widget, 'ctrl+return', () => this.saveAndClose());
|
utils.bindElShortcut(this.$widget, 'ctrl+return', () => this.saveAndClose());
|
||||||
utils.bindElShortcut(this.$widget, 'esc', () => this.cancelAndClose());
|
utils.bindElShortcut(this.$widget, 'esc', () => this.cancelAndClose());
|
||||||
|
|
||||||
this.contentSized();
|
|
||||||
|
|
||||||
this.$title = this.$widget.find('.attr-detail-title');
|
this.$title = this.$widget.find('.attr-detail-title');
|
||||||
|
|
||||||
|
@ -185,7 +185,6 @@ export default class AttributeEditorWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
this.$editor = this.$widget.find('.attribute-list-editor');
|
this.$editor = this.$widget.find('.attribute-list-editor');
|
||||||
|
|
||||||
this.initialized = this.initEditor();
|
this.initialized = this.initEditor();
|
||||||
|
@ -26,12 +26,14 @@ class BasicWidget extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
contentSized() {
|
contentSized() {
|
||||||
this.css('contain', 'layout paint');
|
console.log("Using contentSized() is deprecated NOOP and it is recommended to remove its use.");
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
overflowing() {
|
overflowing() {
|
||||||
this.css('contain', 'none !important');
|
console.log("Using overflowing() is deprecated NOOP and it is recommended to remove its use.");
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,6 @@ export default class ButtonWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
if (this.settings.onClick) {
|
if (this.settings.onClick) {
|
||||||
this.$widget.on("click", () => this.settings.onClick(this));
|
this.$widget.on("click", () => this.settings.onClick(this));
|
||||||
|
@ -76,7 +76,6 @@ const TPL = `
|
|||||||
export default class GlobalMenuWidget extends BasicWidget {
|
export default class GlobalMenuWidget extends BasicWidget {
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.$widget.find(".show-about-dialog-button").on('click',
|
this.$widget.find(".show-about-dialog-button").on('click',
|
||||||
() => import("../../dialogs/about.js").then(d => d.showDialog()));
|
() => import("../../dialogs/about.js").then(d => d.showDialog()));
|
||||||
|
@ -32,7 +32,6 @@ const TPL = `
|
|||||||
export default class NoteActionsWidget extends NoteContextAwareWidget {
|
export default class NoteActionsWidget extends NoteContextAwareWidget {
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.$showSourceButton = this.$widget.find('.show-source-button');
|
this.$showSourceButton = this.$widget.find('.show-source-button');
|
||||||
this.$renderNoteButton = this.$widget.find('.render-note-button');
|
this.$renderNoteButton = this.$widget.find('.render-note-button');
|
||||||
|
@ -16,7 +16,6 @@ export default class CollapsibleWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(WIDGET_TPL);
|
this.$widget = $(WIDGET_TPL);
|
||||||
this.contentSized();
|
|
||||||
this.$widget.find('[data-target]').attr('data-target', "#" + this.componentId);
|
this.$widget.find('[data-target]').attr('data-target', "#" + this.componentId);
|
||||||
|
|
||||||
this.$bodyWrapper = this.$widget.find('.body-wrapper');
|
this.$bodyWrapper = this.$widget.find('.body-wrapper');
|
||||||
|
@ -130,7 +130,6 @@ export default class RibbonContainer extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.$tabContainer = this.$widget.find('.ribbon-tab-container');
|
this.$tabContainer = this.$widget.find('.ribbon-tab-container');
|
||||||
this.$buttonContainer = this.$widget.find('.ribbon-button-container');
|
this.$buttonContainer = this.$widget.find('.ribbon-button-container');
|
||||||
|
@ -25,7 +25,6 @@ export default class HistoryNavigationWidget extends BasicWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
|
|
||||||
const contextMenuHandler = e => {
|
const contextMenuHandler = e => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
@ -8,7 +8,6 @@ const TPL = `
|
|||||||
class CloseDetailButtonWidget extends BasicWidget {
|
class CloseDetailButtonWidget extends BasicWidget {
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.$widget.on('click', () => this.triggerCommand('setActiveScreen', {screen:'tree'}));
|
this.$widget.on('click', () => this.triggerCommand('setActiveScreen', {screen:'tree'}));
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,6 @@ const TPL = `<button type="button" class="action-button bx bx-menu" style="paddi
|
|||||||
class MobileDetailMenuWidget extends BasicWidget {
|
class MobileDetailMenuWidget extends BasicWidget {
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.$widget.on("click", async e => {
|
this.$widget.on("click", async e => {
|
||||||
const note = appContext.tabManager.getActiveContextNote();
|
const note = appContext.tabManager.getActiveContextNote();
|
||||||
|
@ -48,7 +48,6 @@ const WIDGET_TPL = `
|
|||||||
class MobileGlobalButtonsWidget extends BasicWidget {
|
class MobileGlobalButtonsWidget extends BasicWidget {
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(WIDGET_TPL);
|
this.$widget = $(WIDGET_TPL);
|
||||||
this.overflowing();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,7 +75,6 @@ export default class NoteDetailWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
|
|
||||||
this.$widget.on("dragover", e => e.preventDefault());
|
this.$widget.on("dragover", e => e.preventDefault());
|
||||||
|
|
||||||
|
@ -78,7 +78,6 @@ const TPL = `
|
|||||||
export default class NoteIconWidget extends NoteContextAwareWidget {
|
export default class NoteIconWidget extends NoteContextAwareWidget {
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
this.$icon = this.$widget.find('button.note-icon');
|
this.$icon = this.$widget.find('button.note-icon');
|
||||||
this.$iconList = this.$widget.find('.icon-list');
|
this.$iconList = this.$widget.find('.icon-list');
|
||||||
this.$iconList.on('click', 'span', async e => {
|
this.$iconList.on('click', 'span', async e => {
|
||||||
|
@ -32,7 +32,6 @@ export default class NoteListWidget extends NoteContextAwareWidget {
|
|||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.$content = this.$widget.find('.note-list-widget-content');
|
this.$content = this.$widget.find('.note-list-widget-content');
|
||||||
this.contentSized();
|
|
||||||
|
|
||||||
const observer = new IntersectionObserver(entries => {
|
const observer = new IntersectionObserver(entries => {
|
||||||
this.isIntersecting = entries[0].isIntersecting;
|
this.isIntersecting = entries[0].isIntersecting;
|
||||||
|
@ -44,7 +44,6 @@ export default class NoteTitleWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
this.$noteTitle = this.$widget.find(".note-title");
|
this.$noteTitle = this.$widget.find(".note-title");
|
||||||
|
|
||||||
this.$noteTitle.on('input', () => this.spacedUpdate.scheduleUpdate());
|
this.$noteTitle.on('input', () => this.spacedUpdate.scheduleUpdate());
|
||||||
|
@ -34,7 +34,6 @@ const TPL = `
|
|||||||
export default class NoteTypeWidget extends NoteContextAwareWidget {
|
export default class NoteTypeWidget extends NoteContextAwareWidget {
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.$widget.on('show.bs.dropdown', () => this.renderDropdown());
|
this.$widget.on('show.bs.dropdown', () => this.renderDropdown());
|
||||||
|
|
||||||
|
@ -27,7 +27,6 @@ export default class NoteUpdateStatusWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.$filePath = this.$widget.find(".file-path");
|
this.$filePath = this.$widget.find(".file-path");
|
||||||
this.$fileLastModified = this.$widget.find(".file-last-modified");
|
this.$fileLastModified = this.$widget.find(".file-last-modified");
|
||||||
|
@ -73,7 +73,6 @@ const TPL = `
|
|||||||
export default class ProtectedNoteSwitchWidget extends NoteContextAwareWidget {
|
export default class ProtectedNoteSwitchWidget extends NoteContextAwareWidget {
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.$protectButton = this.$widget.find(".protect-button");
|
this.$protectButton = this.$widget.find(".protect-button");
|
||||||
this.$protectButton.on('click', () => protectedSessionService.protectNote(this.noteId, true, false));
|
this.$protectButton.on('click', () => protectedSessionService.protectNote(this.noteId, true, false));
|
||||||
|
@ -43,7 +43,6 @@ const MAX_DISPLAYED_NOTES = 15;
|
|||||||
export default class QuickSearchWidget extends BasicWidget {
|
export default class QuickSearchWidget extends BasicWidget {
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.$searchString = this.$widget.find('.search-string');
|
this.$searchString = this.$widget.find('.search-string');
|
||||||
this.$dropdownMenu = this.$widget.find('.dropdown-menu');
|
this.$dropdownMenu = this.$widget.find('.dropdown-menu');
|
||||||
|
@ -52,7 +52,6 @@ export default class BasicPropertiesWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.$widget.find(".note-type-container").append(this.noteTypeWidget.render());
|
this.$widget.find(".note-type-container").append(this.noteTypeWidget.render());
|
||||||
this.$widget.find(".protected-note-switch-container").append(this.protectedNoteSwitchWidget.render());
|
this.$widget.find(".protected-note-switch-container").append(this.protectedNoteSwitchWidget.render());
|
||||||
|
@ -58,7 +58,6 @@ export default class BookPropertiesWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.$viewTypeSelect = this.$widget.find('.view-type-select');
|
this.$viewTypeSelect = this.$widget.find('.view-type-select');
|
||||||
this.$viewTypeSelect.on('change', () => this.toggleViewType(this.$viewTypeSelect.val()));
|
this.$viewTypeSelect.on('change', () => this.toggleViewType(this.$viewTypeSelect.val()));
|
||||||
|
@ -70,7 +70,6 @@ export default class FilePropertiesWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
this.$fileNoteId = this.$widget.find(".file-note-id");
|
this.$fileNoteId = this.$widget.find(".file-note-id");
|
||||||
this.$fileName = this.$widget.find(".file-filename");
|
this.$fileName = this.$widget.find(".file-filename");
|
||||||
this.$fileType = this.$widget.find(".file-filetype");
|
this.$fileType = this.$widget.find(".file-filetype");
|
||||||
|
@ -52,7 +52,6 @@ export default class ImagePropertiesWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
this.$copyToClipboardButton = this.$widget.find(".image-copy-to-clipboard");
|
this.$copyToClipboardButton = this.$widget.find(".image-copy-to-clipboard");
|
||||||
this.$uploadNewRevisionButton = this.$widget.find(".image-upload-new-revision");
|
this.$uploadNewRevisionButton = this.$widget.find(".image-upload-new-revision");
|
||||||
this.$uploadNewRevisionInput = this.$widget.find(".image-upload-new-revision-input");
|
this.$uploadNewRevisionInput = this.$widget.find(".image-upload-new-revision-input");
|
||||||
|
@ -38,7 +38,6 @@ export default class InheritedAttributesWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.$container = this.$widget.find('.inherited-attributes-container');
|
this.$container = this.$widget.find('.inherited-attributes-container');
|
||||||
this.$widget.append(this.attributeDetailWidget.render());
|
this.$widget.append(this.attributeDetailWidget.render());
|
||||||
|
@ -78,7 +78,6 @@ export default class LinkMapWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
this.$styleResolver = this.$widget.find('.style-resolver');
|
this.$styleResolver = this.$widget.find('.style-resolver');
|
||||||
|
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
window.addEventListener('resize', () => {
|
window.addEventListener('resize', () => {
|
||||||
if (!this.graph) { // no graph has been even rendered
|
if (!this.graph) { // no graph has been even rendered
|
||||||
|
@ -76,7 +76,6 @@ export default class NoteInfoWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.$noteId = this.$widget.find(".note-info-note-id");
|
this.$noteId = this.$widget.find(".note-info-note-id");
|
||||||
this.$dateCreated = this.$widget.find(".note-info-date-created");
|
this.$dateCreated = this.$widget.find(".note-info-date-created");
|
||||||
|
@ -50,7 +50,6 @@ export default class NotePathsWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.$notePathList = this.$widget.find(".note-path-list");
|
this.$notePathList = this.$widget.find(".note-path-list");
|
||||||
this.$widget.on('show.bs.dropdown', () => this.renderDropdown());
|
this.$widget.on('show.bs.dropdown', () => this.renderDropdown());
|
||||||
|
@ -30,7 +30,6 @@ export default class NotePropertiesWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
|
|
||||||
this.$pageUrl = this.$widget.find('.page-url');
|
this.$pageUrl = this.$widget.find('.page-url');
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,6 @@ export default class OwnedAttributeListWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.$widget.find('.attr-editor-placeholder').replaceWith(this.attributeEditorWidget.render());
|
this.$widget.find('.attr-editor-placeholder').replaceWith(this.attributeEditorWidget.render());
|
||||||
this.$widget.append(this.attributeDetailWidget.render());
|
this.$widget.append(this.attributeDetailWidget.render());
|
||||||
|
@ -37,7 +37,6 @@ const TPL = `
|
|||||||
export default class PromotedAttributesWidget extends NoteContextAwareWidget {
|
export default class PromotedAttributesWidget extends NoteContextAwareWidget {
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
this.$container = this.$widget.find(".promoted-attributes-container");
|
this.$container = this.$widget.find(".promoted-attributes-container");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -217,8 +217,6 @@ export default class SearchDefinitionWidget extends NoteContextAwareWidget {
|
|||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.$component = this.$widget.find('.search-definition-widget');
|
this.$component = this.$widget.find('.search-definition-widget');
|
||||||
|
|
||||||
this.contentSized();
|
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.$widget.on('click', '[data-search-option-add]', async event => {
|
this.$widget.on('click', '[data-search-option-add]', async event => {
|
||||||
const searchOptionName = $(event.target).attr('data-search-option-add');
|
const searchOptionName = $(event.target).attr('data-search-option-add');
|
||||||
|
@ -47,7 +47,6 @@ export default class SimilarNotesWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.$similarNotesWrapper = this.$widget.find(".similar-notes-wrapper");
|
this.$similarNotesWrapper = this.$widget.find(".similar-notes-wrapper");
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,6 @@ export default class SearchResultWidget extends NoteContextAwareWidget {
|
|||||||
this.$content = this.$widget.find('.search-result-widget-content');
|
this.$content = this.$widget.find('.search-result-widget-content');
|
||||||
this.$noResults = this.$widget.find('.search-no-results');
|
this.$noResults = this.$widget.find('.search-no-results');
|
||||||
this.$notExecutedYet = this.$widget.find('.search-not-executed-yet');
|
this.$notExecutedYet = this.$widget.find('.search-not-executed-yet');
|
||||||
this.contentSized();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async refreshWithNote(note) {
|
async refreshWithNote(note) {
|
||||||
|
@ -20,7 +20,6 @@ export default class SqlResultWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.$sqlConsoleResultContainer = this.$widget.find('.sql-console-result-container');
|
this.$sqlConsoleResultContainer = this.$widget.find('.sql-console-result-container');
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,6 @@ export default class SqlTableSchemasWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.$sqlConsoleTableSchemas = this.$widget.find('.sql-table-schemas');
|
this.$sqlConsoleTableSchemas = this.$widget.find('.sql-table-schemas');
|
||||||
}
|
}
|
||||||
|
@ -97,7 +97,6 @@ export default class SyncStatusWidget extends BasicWidget {
|
|||||||
this.$widget.find('.sync-status-icon:not(.sync-status-in-progress)')
|
this.$widget.find('.sync-status-icon:not(.sync-status-in-progress)')
|
||||||
.on('click', () => syncService.syncNow())
|
.on('click', () => syncService.syncNow())
|
||||||
|
|
||||||
this.overflowing();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
showIcon(className) {
|
showIcon(className) {
|
||||||
|
@ -233,7 +233,6 @@ const TAB_ROW_TPL = `
|
|||||||
export default class TabRowWidget extends BasicWidget {
|
export default class TabRowWidget extends BasicWidget {
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TAB_ROW_TPL);
|
this.$widget = $(TAB_ROW_TPL);
|
||||||
this.overflowing();
|
|
||||||
|
|
||||||
this.draggabillies = [];
|
this.draggabillies = [];
|
||||||
|
|
||||||
|
@ -35,7 +35,6 @@ export default class TitleBarButtonsWidget extends BasicWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
|
|
||||||
const $minimizeBtn = this.$widget.find(".minimize-btn");
|
const $minimizeBtn = this.$widget.find(".minimize-btn");
|
||||||
const $maximizeBtn = this.$widget.find(".maximize-btn");
|
const $maximizeBtn = this.$widget.find(".maximize-btn");
|
||||||
|
@ -22,7 +22,6 @@ export default class BookTypeWidget extends TypeWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
this.$helpNoChildren = this.$widget.find('.note-detail-book-empty-help');
|
this.$helpNoChildren = this.$widget.find('.note-detail-book-empty-help');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,6 +14,5 @@ export default class DeletedTypeWidget extends TypeWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,6 @@ export default class EditableCodeTypeWidget extends TypeWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
this.$editor = this.$widget.find('.note-detail-code-editor');
|
this.$editor = this.$widget.find('.note-detail-code-editor');
|
||||||
this.$executeButton = this.$widget.find('.execute-button');
|
this.$executeButton = this.$widget.find('.execute-button');
|
||||||
|
|
||||||
|
@ -77,7 +77,6 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
this.$editor = this.$widget.find('.note-detail-editable-text-editor');
|
this.$editor = this.$widget.find('.note-detail-editable-text-editor');
|
||||||
|
|
||||||
this.initialized = this.initEditor();
|
this.initialized = this.initEditor();
|
||||||
|
@ -49,7 +49,6 @@ export default class EmptyTypeWidget extends TypeWidget {
|
|||||||
// FIXME: this might be optimized - cleaned up after use since it's always used only for new tab
|
// FIXME: this might be optimized - cleaned up after use since it's always used only for new tab
|
||||||
|
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
this.$autoComplete = this.$widget.find(".note-autocomplete");
|
this.$autoComplete = this.$widget.find(".note-autocomplete");
|
||||||
|
|
||||||
noteAutocompleteService.initNoteAutocomplete(this.$autoComplete, {
|
noteAutocompleteService.initNoteAutocomplete(this.$autoComplete, {
|
||||||
|
@ -42,7 +42,6 @@ export default class FileTypeWidget extends TypeWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
this.$previewContent = this.$widget.find(".file-preview-content");
|
this.$previewContent = this.$widget.find(".file-preview-content");
|
||||||
this.$previewNotAvailable = this.$widget.find(".file-preview-not-available");
|
this.$previewNotAvailable = this.$widget.find(".file-preview-not-available");
|
||||||
this.$pdfPreview = this.$widget.find(".pdf-preview");
|
this.$pdfPreview = this.$widget.find(".pdf-preview");
|
||||||
|
@ -43,7 +43,6 @@ class ImageTypeWidget extends TypeWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
this.$imageWrapper = this.$widget.find('.note-detail-image-wrapper');
|
this.$imageWrapper = this.$widget.find('.note-detail-image-wrapper');
|
||||||
this.$imageView = this.$widget.find('.note-detail-image-view')
|
this.$imageView = this.$widget.find('.note-detail-image-view')
|
||||||
.attr("id", "image-view-" + utils.randomString(10));
|
.attr("id", "image-view-" + utils.randomString(10));
|
||||||
|
@ -25,7 +25,6 @@ export default class ProtectedSessionTypeWidget extends TypeWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
this.$passwordForm = this.$widget.find(".protected-session-password-form");
|
this.$passwordForm = this.$widget.find(".protected-session-password-form");
|
||||||
this.$passwordInput = this.$widget.find(".protected-session-password");
|
this.$passwordInput = this.$widget.find(".protected-session-password");
|
||||||
|
|
||||||
|
@ -32,7 +32,6 @@ export default class ReadOnlyCodeTypeWidget extends TypeWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
this.$content = this.$widget.find('.note-detail-read-only-code-content');
|
this.$content = this.$widget.find('.note-detail-read-only-code-content');
|
||||||
|
|
||||||
this.$widget.find('.edit-code-note-button').on('click', () => {
|
this.$widget.find('.edit-code-note-button').on('click', () => {
|
||||||
|
@ -65,7 +65,6 @@ export default class ReadOnlyTextTypeWidget extends AbstractTextTypeWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
|
|
||||||
this.$content = this.$widget.find('.note-detail-readonly-text-content');
|
this.$content = this.$widget.find('.note-detail-readonly-text-content');
|
||||||
|
|
||||||
|
@ -99,7 +99,6 @@ export default class RelationMapTypeWidget extends TypeWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
this.$relationMapContainer = this.$widget.find(".relation-map-container");
|
this.$relationMapContainer = this.$widget.find(".relation-map-container");
|
||||||
this.$createChildNote = this.$widget.find(".relation-map-create-child-note");
|
this.$createChildNote = this.$widget.find(".relation-map-create-child-note");
|
||||||
this.$zoomInButton = this.$widget.find(".relation-map-zoom-in");
|
this.$zoomInButton = this.$widget.find(".relation-map-zoom-in");
|
||||||
|
@ -17,7 +17,6 @@ export default class RenderTypeWidget extends TypeWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.contentSized();
|
|
||||||
this.$noteDetailRenderHelp = this.$widget.find('.note-detail-render-help');
|
this.$noteDetailRenderHelp = this.$widget.find('.note-detail-render-help');
|
||||||
this.$noteDetailRenderContent = this.$widget.find('.note-detail-render-content');
|
this.$noteDetailRenderContent = this.$widget.find('.note-detail-render-content');
|
||||||
}
|
}
|
||||||
|
@ -602,10 +602,6 @@ a.external:not(.no-arrow):after, a[href^="http://"]:not(.no-arrow):after, a[href
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.component {
|
|
||||||
contain: size;
|
|
||||||
}
|
|
||||||
|
|
||||||
.toast {
|
.toast {
|
||||||
background-color: var(--accented-background-color) !important;
|
background-color: var(--accented-background-color) !important;
|
||||||
color: var(--main-text-color) !important;
|
color: var(--main-text-color) !important;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user