diff --git a/apps/client/src/layouts/mobile_layout.tsx b/apps/client/src/layouts/mobile_layout.tsx index 8d8dae6c2..91953b1a3 100644 --- a/apps/client/src/layouts/mobile_layout.tsx +++ b/apps/client/src/layouts/mobile_layout.tsx @@ -81,7 +81,7 @@ const FANCYTREE_CSS = ` span.fancytree-expander { width: 24px !important; - margin-right: 5px; + margin-inline-end: 5px; } .fancytree-loading span.fancytree-expander { @@ -101,7 +101,7 @@ span.fancytree-expander { .tree-wrapper .scroll-to-active-note-button, .tree-wrapper .tree-settings-button { position: fixed; - margin-right: 16px; + margin-inline-end: 16px; display: none; } diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css index 574c0684b..5e9b3daf3 100644 --- a/apps/client/src/stylesheets/style.css +++ b/apps/client/src/stylesheets/style.css @@ -179,7 +179,7 @@ label.tn-checkbox + label.tn-checkbox { label.tn-radio input[type="radio"], label.tn-checkbox input[type="checkbox"] { - margin-right: .5em; + margin-inline-end: .5em; } #left-pane input, @@ -1041,13 +1041,13 @@ svg.ck-icon .note-icon { } .ck-content .footnote-back-link { - margin-right: 0.1em; + margin-inline-end: 0.1em; position: relative; top: -0.2em; } .ck-content .footnotes .footnote-back-link > sup { - margin-right: 0; + margin-inline-end: 0; } .ck-content .footnote-item:before { @@ -1749,7 +1749,7 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu { flex-shrink: 0; flex-direction: column; margin-inline-start: 10px; - margin-right: 5px; + margin-inline-end: 5px; } #right-pane .card-header { @@ -1801,7 +1801,7 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu { .note-split { margin-inline-start: auto; - margin-right: auto; + margin-inline-end: auto; } .note-split.full-content-width { @@ -1820,7 +1820,7 @@ button.close:hover { .reference-link .bx { position: relative; top: 1px; - margin-right: 3px; + margin-inline-end: 3px; } .options-section:first-of-type h4 { @@ -2319,12 +2319,12 @@ footer.webview-footer button { display: flex; align-items: center; font-size: 0.9em; - margin-right: 15px; + margin-inline-end: 15px; cursor: pointer; } .chat-option input[type="checkbox"] { - margin-right: 5px; + margin-inline-end: 5px; } /* Style for thinking process in chat responses */ diff --git a/apps/client/src/stylesheets/table.css b/apps/client/src/stylesheets/table.css index 8f187dd88..1579a6853 100644 --- a/apps/client/src/stylesheets/table.css +++ b/apps/client/src/stylesheets/table.css @@ -117,7 +117,7 @@ /* Cell */ .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left { - margin-right: var(--cell-editing-border-width); + margin-inline-end: var(--cell-editing-border-width); } .tabulator-row .tabulator-cell.tabulator-frozen.tabulator-frozen-left, diff --git a/apps/client/src/stylesheets/theme-next/base.css b/apps/client/src/stylesheets/theme-next/base.css index 1549c9f86..bcadc3517 100644 --- a/apps/client/src/stylesheets/theme-next/base.css +++ b/apps/client/src/stylesheets/theme-next/base.css @@ -357,13 +357,13 @@ li.dropdown-item a.dropdown-item-button:focus-visible { } #toast-container .toast:not(.no-title) .bx { - margin-right: 0.5em; + margin-inline-end: 0.5em; font-size: 1.1em; opacity: 0.85; } #toast-container .toast.no-title .bx { - margin-right: 0; + margin-inline-end: 0; font-size: 1.3em; } diff --git a/apps/client/src/stylesheets/theme-next/dialogs.css b/apps/client/src/stylesheets/theme-next/dialogs.css index 967689599..882e0b942 100644 --- a/apps/client/src/stylesheets/theme-next/dialogs.css +++ b/apps/client/src/stylesheets/theme-next/dialogs.css @@ -56,7 +56,7 @@ } .modal .modal-header .help-button { - margin-right: 0; + margin-inline-end: 0; font-size: calc(var(--modal-control-button-size) * .75); font-family: unset; font-weight: bold; @@ -141,7 +141,7 @@ div.tn-tool-dialog { /* Search box wrapper */ .jump-to-note-dialog .input-group { - margin-right: 16px; + margin-inline-end: 16px; } .jump-to-note-dialog .input-group:hover { @@ -419,5 +419,5 @@ div.tn-tool-dialog { } .note-type-chooser-dialog div.note-type-dropdown .dropdown-item span.bx { - margin-right: .25em; + margin-inline-end: .25em; } \ No newline at end of file diff --git a/apps/client/src/stylesheets/theme-next/llm-chat.css b/apps/client/src/stylesheets/theme-next/llm-chat.css index a56ad217e..da5b47895 100644 --- a/apps/client/src/stylesheets/theme-next/llm-chat.css +++ b/apps/client/src/stylesheets/theme-next/llm-chat.css @@ -23,7 +23,7 @@ } .chat-message.assistant-message { - margin-right: auto; + margin-inline-end: auto; } .message-avatar { @@ -33,7 +33,7 @@ display: flex; align-items: center; justify-content: center; - margin-right: 8px; + margin-inline-end: 8px; } .user-message .message-avatar { diff --git a/apps/client/src/stylesheets/theme-next/pages.css b/apps/client/src/stylesheets/theme-next/pages.css index 7efc741f5..d0c092321 100644 --- a/apps/client/src/stylesheets/theme-next/pages.css +++ b/apps/client/src/stylesheets/theme-next/pages.css @@ -52,7 +52,7 @@ background-color: #f5f5f5; } .google-login-btn img { - margin-right: 10px; + margin-inline-end: 10px; width: 18px; height: 18px; } @@ -217,7 +217,7 @@ body.desktop .option-section:not(.tn-no-card) { --bs-border-width: 2px; margin-inline-start: calc(var(--options-card-padding) * -1); - margin-right: calc(var(--options-card-padding) * -1); + margin-inline-end: calc(var(--options-card-padding) * -1); opacity: 1; color: var(--root-background); } diff --git a/apps/client/src/stylesheets/theme-next/ribbon.css b/apps/client/src/stylesheets/theme-next/ribbon.css index 3957bb1e2..e9af8df88 100644 --- a/apps/client/src/stylesheets/theme-next/ribbon.css +++ b/apps/client/src/stylesheets/theme-next/ribbon.css @@ -95,7 +95,7 @@ div.promoted-attributes-container { /* Note type dropdown */ ul.note-type-dropdown .check { - margin-right: 6px; + margin-inline-end: 6px; } ul.note-type-dropdown li.dropdown-item { diff --git a/apps/client/src/stylesheets/theme-next/shell.css b/apps/client/src/stylesheets/theme-next/shell.css index ce4a3e4eb..cdb9bae09 100644 --- a/apps/client/src/stylesheets/theme-next/shell.css +++ b/apps/client/src/stylesheets/theme-next/shell.css @@ -539,7 +539,7 @@ div.quick-search .search-button { justify-content: center; width: 25px; height: 25px; - margin-right: 8px; + margin-inline-end: 8px; border-radius: 50%; padding: 0; color: var(--quick-search-color) !important; @@ -734,7 +734,7 @@ body.mobile .fancytree-node > span { } #left-pane .tree-item-button { - margin-right: 6px; + margin-inline-end: 6px; border: unset; border-radius: 50%; background: var(--left-pane-item-action-button-background); @@ -1221,7 +1221,7 @@ body.mobile .note-title { } .title-row > *:first-child { - margin-right: 0; + margin-inline-end: 0; } .title-row > *:nth-child(2) { @@ -1312,7 +1312,7 @@ body.mobile .note-title { /* The promoted attributes section */ div.promoted-attributes-container { display: flex; - margin-right: 10%; + margin-inline-end: 10%; padding: 6px 0; gap: 8px; align-items: stretch; @@ -1400,7 +1400,7 @@ div.promoted-attribute-cell .tn-checkbox { /* Relocate the checkbox before the label */ div.promoted-attribute-cell.promoted-attribute-label-boolean > div:first-of-type { order: -1; - margin-right: 1.5em; + margin-inline-end: 1.5em; } /* The element containing the "new attribute" and "remove this attribute button" */ @@ -1408,7 +1408,7 @@ div.promoted-attribute-cell .multiplicity:has(span) { --icon-button-size: 24px; margin-inline-start: 8px; - margin-right: calc(var(--pa-card-padding-left) - var(--pa-card-padding-right)); + margin-inline-end: calc(var(--pa-card-padding-left) - var(--pa-card-padding-right)); font-size: 0; /* Prevent whitespaces creating a gap between buttons */ display: flex; } @@ -1700,7 +1700,7 @@ div.find-replace-widget div.find-widget-found-wrapper > span { } .replace-widget-box > * { - margin-right: unset !important; + margin-inline-end: unset !important; } div.replace-widget-box button.btn.btn-sm { @@ -1807,7 +1807,7 @@ div.find-replace-widget div.find-widget-found-wrapper > span { .excalidraw .dropdown-menu .dropdown-menu-container > div:not([class]):not(:last-child) { margin-inline-start: calc(var(--padding) * var(--space-factor) * -1) !important; - margin-right: calc(var(--padding) * var(--space-factor) * -1) !important; + margin-inline-end: calc(var(--padding) * var(--space-factor) * -1) !important; } .excalidraw .dropdown-menu:before { diff --git a/apps/client/src/stylesheets/tree.css b/apps/client/src/stylesheets/tree.css index 29854e861..00e131936 100644 --- a/apps/client/src/stylesheets/tree.css +++ b/apps/client/src/stylesheets/tree.css @@ -59,7 +59,7 @@ span.fancytree-node.fancytree-hide { line-height: 1; position: relative; top: 2px; - margin-right: 5px; + margin-inline-end: 5px; } .fancytree-loading span.fancytree-expander { diff --git a/apps/client/src/widgets/attribute_widgets/attribute_detail.ts b/apps/client/src/widgets/attribute_widgets/attribute_detail.ts index cdb7c7b43..7ce3372b9 100644 --- a/apps/client/src/widgets/attribute_widgets/attribute_detail.ts +++ b/apps/client/src/widgets/attribute_widgets/attribute_detail.ts @@ -176,7 +176,7 @@ const TPL = /*html*/`