From aea0e8df6addb215b187898003afa6e52a984f6a Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 20 Aug 2024 19:42:11 +0200 Subject: fix: Adjust more places for logical position Signed-off-by: Ferdinand Thiessen --- apps/settings/src/components/AdminTwoFactor.vue | 3 +- apps/settings/src/components/AppList.vue | 4 +- apps/settings/src/components/AppList/AppItem.vue | 13 +- .../components/AppStoreDiscover/CarouselType.vue | 4 +- .../src/components/AppStoreDiscover/PostType.vue | 4 +- apps/settings/src/components/AuthTokenSetup.vue | 4 +- .../src/components/AuthTokenSetupDialogue.vue | 239 --------------------- .../DeclarativeSettings/DeclarativeSection.vue | 4 +- apps/settings/src/components/Encryption.vue | 2 +- apps/settings/src/components/Markdown.vue | 9 +- .../src/components/Users/shared/styles.scss | 2 +- .../settings/src/components/WebAuthn/AddDevice.vue | 3 +- 12 files changed, 23 insertions(+), 268 deletions(-) delete mode 100644 apps/settings/src/components/AuthTokenSetupDialogue.vue (limited to 'apps/settings') diff --git a/apps/settings/src/components/AdminTwoFactor.vue b/apps/settings/src/components/AdminTwoFactor.vue index 9b2b222d5e8..56b9d609b8b 100644 --- a/apps/settings/src/components/AdminTwoFactor.vue +++ b/apps/settings/src/components/AdminTwoFactor.vue @@ -175,8 +175,7 @@ export default { .two-factor-loading { display: inline-block; vertical-align: sub; - margin-inline-start: -2px; - margin-inline-end: 1px; + margin-inline: -2px 1px; } .top-margin { diff --git a/apps/settings/src/components/AppList.vue b/apps/settings/src/components/AppList.vue index 68df4072ee8..2372b461f57 100644 --- a/apps/settings/src/components/AppList.vue +++ b/apps/settings/src/components/AppList.vue @@ -326,14 +326,14 @@ $toolbar-height: 44px + $toolbar-padding * 2; } #app-list-update-all { - margin-left: 10px; + margin-inline-start: 10px; } &__toolbar { height: $toolbar-height; padding: $toolbar-padding; // Leave room for app-navigation-toggle - padding-left: $toolbar-height; + padding-inline-start: $toolbar-height; width: 100%; background-color: var(--color-main-background); position: sticky; diff --git a/apps/settings/src/components/AppList/AppItem.vue b/apps/settings/src/components/AppList/AppItem.vue index 881be612445..08faa06f1cd 100644 --- a/apps/settings/src/components/AppList/AppItem.vue +++ b/apps/settings/src/components/AppList/AppItem.vue @@ -228,7 +228,7 @@ export default { .app-image { width: var(--default-clickable-area); height: auto; - text-align: right; + text-align: end; } .app-image-icon svg, @@ -257,8 +257,7 @@ export default { .app-name--link::after { content: ''; position: absolute; - left: 0; - right: 0; + inset-inline: 0; height: var(--app-item-height); } @@ -271,7 +270,7 @@ export default { .icon-loading-small { display: inline-block; top: 4px; - margin-right: 10px; + margin-inline-end: 10px; } } @@ -317,10 +316,8 @@ export default { .app-name--link::after { content: ''; position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; + inset-block: 0; + inset-inline: 0; } .app-actions { diff --git a/apps/settings/src/components/AppStoreDiscover/CarouselType.vue b/apps/settings/src/components/AppStoreDiscover/CarouselType.vue index 537c3004c0e..e657c7ae800 100644 --- a/apps/settings/src/components/AppStoreDiscover/CarouselType.vue +++ b/apps/settings/src/components/AppStoreDiscover/CarouselType.vue @@ -165,10 +165,10 @@ h3 { // See padding of discover section &--next { - right: -54px; + inset-inline-end: -54px; } &--previous { - left: -54px; + inset-inline-start: -54px; } } diff --git a/apps/settings/src/components/AppStoreDiscover/PostType.vue b/apps/settings/src/components/AppStoreDiscover/PostType.vue index 536609f329f..512ce987510 100644 --- a/apps/settings/src/components/AppStoreDiscover/PostType.vue +++ b/apps/settings/src/components/AppStoreDiscover/PostType.vue @@ -255,12 +255,12 @@ export default defineComponent({ &-wrapper { position: relative; top: -50%; - left: -50%; + inset-inline-start: -50%; } position: absolute; top: -46px; // half of the icon height - right: -46px; // half of the icon width + inset-inline-end: -46px; // half of the icon width } } diff --git a/apps/settings/src/components/AuthTokenSetup.vue b/apps/settings/src/components/AuthTokenSetup.vue index dcff95afd63..74dd3c2bbed 100644 --- a/apps/settings/src/components/AuthTokenSetup.vue +++ b/apps/settings/src/components/AuthTokenSetup.vue @@ -81,8 +81,8 @@ export default defineComponent({ diff --git a/apps/settings/src/components/DeclarativeSettings/DeclarativeSection.vue b/apps/settings/src/components/DeclarativeSettings/DeclarativeSection.vue index a4e01bcef7d..1c739a54412 100644 --- a/apps/settings/src/components/DeclarativeSettings/DeclarativeSection.vue +++ b/apps/settings/src/components/DeclarativeSettings/DeclarativeSection.vue @@ -243,8 +243,8 @@ export default { .hint { display: inline-block; color: var(--color-text-maxcontrast); - margin-left: 8px; - padding-top: 5px; + margin-inline-start: 8px; + padding-block-start: 5px; } &-radio, &-multi_checkbox { diff --git a/apps/settings/src/components/Encryption.vue b/apps/settings/src/components/Encryption.vue index c17ef57cc7f..72b597c61d3 100644 --- a/apps/settings/src/components/Encryption.vue +++ b/apps/settings/src/components/Encryption.vue @@ -168,7 +168,7 @@ export default { color: var(--color-text-light); background-color: var(--note-background); border: 1px solid var(--color-border); - border-left: 4px solid var(--note-theme); + border-inline-start: 4px solid var(--note-theme); border-radius: var(--border-radius); box-shadow: rgba(43, 42, 51, 0.05) 0px 1px 2px 0px; margin: 1rem 0; diff --git a/apps/settings/src/components/Markdown.vue b/apps/settings/src/components/Markdown.vue index 8f2800825a3..f3b8747119d 100644 --- a/apps/settings/src/components/Markdown.vue +++ b/apps/settings/src/components/Markdown.vue @@ -160,7 +160,7 @@ export default { } ul, ol { - padding-left: 10px; + padding-inline-start: 10px; margin-inline-start: 10px; } @@ -177,11 +177,10 @@ export default { } blockquote { - padding-left: 1em; - border-left: 4px solid var(--color-primary-element); + padding-inline-start: 1em; + border-inline-start: 4px solid var(--color-primary-element); color: var(--color-text-maxcontrast); - margin-inline-start: 0; - margin-inline-end: 0; + margin-inline: 0; } } diff --git a/apps/settings/src/components/Users/shared/styles.scss b/apps/settings/src/components/Users/shared/styles.scss index 3e4a96811d6..4dfdd58af6d 100644 --- a/apps/settings/src/components/Users/shared/styles.scss +++ b/apps/settings/src/components/Users/shared/styles.scss @@ -50,7 +50,7 @@ } &--username { - padding-left: calc(var(--default-grid-baseline) * 3); + padding-inline-start: calc(var(--default-grid-baseline) * 3); } &--avatar { diff --git a/apps/settings/src/components/WebAuthn/AddDevice.vue b/apps/settings/src/components/WebAuthn/AddDevice.vue index f478da0dbb7..6c0b1eacde8 100644 --- a/apps/settings/src/components/WebAuthn/AddDevice.vue +++ b/apps/settings/src/components/WebAuthn/AddDevice.vue @@ -179,8 +179,7 @@ export default { .webauthn-loading { display: inline-block; vertical-align: sub; - margin-inline-start: 2px; - margin-inline-end: 2px; + margin-inline: 2px; } .new-webauthn-device { -- cgit v1.2.3