A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
style(app): use logical CSS properties in profile surfaces
Hampuse8d246ac4f06
diff --git a/fluxer_app/src/features/user/components/modals/UserProfileMobileSheet.module.css b/fluxer_app/src/features/user/components/modals/UserProfileMobileSheet.module.cssindex 96084b396..91c6a73f2 100644--- a/fluxer_app/src/features/user/components/modals/UserProfileMobileSheet.module.css+++ b/fluxer_app/src/features/user/components/modals/UserProfileMobileSheet.module.css@@ -24,8 +24,8 @@height: 11.5rem;width: 100%;overflow: hidden;- border-top-left-radius: 1.5rem;- border-top-right-radius: 1.5rem;+ border-start-start-radius: 1.5rem;+ border-start-end-radius: 1.5rem;}.bannerImage {@@ -69,7 +69,7 @@.avatarContainer {position: absolute;- left: 1rem;+ inset-inline-start: 1rem;z-index: 20;top: -2.5rem;}@@ -81,15 +81,15 @@}.contentPadding {- padding-left: 1rem;- padding-right: 1rem;+ padding-inline-start: 1rem;+ padding-inline-end: 1rem;padding-top: 3rem;}.actionsContainer {position: absolute;top: 1rem;- right: 1rem;+ inset-inline-end: 1rem;z-index: 10;display: flex;gap: 0.5rem;@@ -143,7 +143,7 @@display: flex;align-items: center;flex-wrap: wrap;- gap: 0.375rem;+ gap: 0.5rem;min-width: 0;}@@ -175,8 +175,8 @@gap: 0.5rem;border-radius: 0.75rem;background-color: var(--brand-primary);- padding-left: 1rem;- padding-right: 1rem;+ padding-inline-start: 1rem;+ padding-inline-end: 1rem;padding-top: 0.75rem;padding-bottom: 0.75rem;cursor: pointer;@@ -276,7 +276,7 @@border-radius: 0.75rem;background-color: var(--background-secondary-alt);padding: 1rem;- text-align: left;+ text-align: start;cursor: pointer;}@@ -335,7 +335,7 @@align-items: center;gap: 0.75rem;padding: 1rem;- text-align: left;+ text-align: start;cursor: pointer;appearance: none;-webkit-tap-highlight-color: transparent;@@ -353,8 +353,8 @@}.mutualDivider {- margin-left: 1rem;- margin-right: 1rem;+ margin-inline-start: 1rem;+ margin-inline-end: 1rem;height: 0.0625rem;background-color: var(--background-header-secondary);opacity: 0.3;diff --git a/fluxer_app/src/features/user/components/modals/UserProfileModal.module.css b/fluxer_app/src/features/user/components/modals/UserProfileModal.module.cssindex 99a0cf7fc..a2f57f0f7 100644--- a/fluxer_app/src/features/user/components/modals/UserProfileModal.module.css+++ b/fluxer_app/src/features/user/components/modals/UserProfileModal.module.css@@ -25,7 +25,7 @@.userInfo {user-select: text;-webkit-user-select: text;- padding-left: 0.75rem;+ padding-inline-start: 0.75rem;flex-shrink: 0;}@@ -129,7 +129,7 @@.tagBadgeRow {display: flex;align-items: center;- gap: 0.35rem;+ gap: 0.375rem;flex-wrap: wrap;}@@ -208,8 +208,8 @@aspect-ratio: 20 / 7;overflow: hidden;position: relative;- border-top-left-radius: var(--profile-modal-inner-radius);- border-top-right-radius: var(--profile-modal-inner-radius);+ border-start-start-radius: var(--profile-modal-inner-radius);+ border-start-end-radius: var(--profile-modal-inner-radius);clip-path: inset(0 round var(--profile-modal-inner-radius) var(--profile-modal-inner-radius) 0 0);}@@ -239,7 +239,7 @@.avatarContainer {position: absolute;top: calc(var(--profile-modal-avatar-top, -4.05rem) * var(--profile-modal-scale));- left: calc(var(--profile-modal-avatar-left, 1rem) * var(--profile-modal-scale));+ inset-inline-start: calc(var(--profile-modal-avatar-left, 1rem) * var(--profile-modal-scale));z-index: 0;border: var(--profile-modal-avatar-border, 0.3rem) solid var(--background-primary);background-color: var(--background-primary);diff --git a/fluxer_app/src/features/user/components/popouts/UserProfilePopout.module.css b/fluxer_app/src/features/user/components/popouts/UserProfilePopout.module.cssindex 45d43bcb8..b6793191b 100644--- a/fluxer_app/src/features/user/components/popouts/UserProfilePopout.module.css+++ b/fluxer_app/src/features/user/components/popouts/UserProfilePopout.module.css@@ -1,8 +1,8 @@/* SPDX-License-Identifier: AGPL-3.0-or-later */.role > :first-child {- margin-right: 0.25rem;- margin-left: 0.0625rem;+ margin-inline-end: 0.25rem;+ margin-inline-start: 0.0625rem;}:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))diff --git a/fluxer_app/src/features/user/components/popouts/UserProfileShared.module.css b/fluxer_app/src/features/user/components/popouts/UserProfileShared.module.cssindex 327b00d47..e41df1b8f 100644--- a/fluxer_app/src/features/user/components/popouts/UserProfileShared.module.css+++ b/fluxer_app/src/features/user/components/popouts/UserProfileShared.module.css@@ -19,7 +19,7 @@}.viewFullButton {- text-align: left;+ text-align: start;color: var(--text-link);font-size: 0.75rem;line-height: 1rem;diff --git a/fluxer_app/src/features/user/components/profile/UserProfileLoadingSkeleton.module.css b/fluxer_app/src/features/user/components/profile/UserProfileLoadingSkeleton.module.cssindex 86e0730e0..d94b27279 100644--- a/fluxer_app/src/features/user/components/profile/UserProfileLoadingSkeleton.module.css+++ b/fluxer_app/src/features/user/components/profile/UserProfileLoadingSkeleton.module.css@@ -94,8 +94,8 @@.modal .banner {aspect-ratio: var(--profile-skeleton-banner-aspect);- border-top-left-radius: var(--profile-modal-inner-radius, 0.25rem);- border-top-right-radius: var(--profile-modal-inner-radius, 0.25rem);+ border-start-start-radius: var(--profile-modal-inner-radius, 0.25rem);+ border-start-end-radius: var(--profile-modal-inner-radius, 0.25rem);clip-path: inset(0 round var(--profile-modal-inner-radius, 0.25rem) var(--profile-modal-inner-radius, 0.25rem) 0 0);}@@ -132,7 +132,7 @@.avatar {position: absolute;top: var(--profile-skeleton-avatar-top);- left: var(--profile-skeleton-avatar-left);+ inset-inline-start: var(--profile-skeleton-avatar-left);box-sizing: content-box;width: var(--profile-skeleton-avatar-size);height: var(--profile-skeleton-avatar-size);@@ -144,7 +144,7 @@.popoutAvatarSlot {position: absolute;top: var(--profile-skeleton-avatar-top);- left: var(--profile-skeleton-avatar-left);+ inset-inline-start: var(--profile-skeleton-avatar-left);z-index: 1;box-sizing: content-box;width: var(--profile-skeleton-avatar-size);@@ -157,7 +157,7 @@.popoutAvatarStatus {position: absolute;top: calc(var(--profile-skeleton-avatar-top) + var(--profile-skeleton-avatar-size) - 1.125rem);- left: calc(var(--profile-skeleton-avatar-left) + var(--profile-skeleton-avatar-size) - 1.125rem);+ inset-inline-start: calc(var(--profile-skeleton-avatar-left) + var(--profile-skeleton-avatar-size) - 1.125rem);z-index: 2;width: 1.5rem;height: 1.5rem;@@ -292,7 +292,7 @@display: flex;flex-direction: column;gap: 0.5rem;- padding-left: 0.75rem;+ padding-inline-start: 0.75rem;}.modalNameLine {diff --git a/fluxer_app/src/features/user/components/profile/VoiceActivityCard.module.css b/fluxer_app/src/features/user/components/profile/VoiceActivityCard.module.cssindex fcd36b7e6..ae5369ccb 100644--- a/fluxer_app/src/features/user/components/profile/VoiceActivityCard.module.css+++ b/fluxer_app/src/features/user/components/profile/VoiceActivityCard.module.css@@ -54,7 +54,7 @@padding: 0;background: transparent;cursor: pointer;- text-align: left;+ text-align: start;outline: none;}diff --git a/fluxer_app/src/features/user/components/profile/VoiceActivitySection.module.css b/fluxer_app/src/features/user/components/profile/VoiceActivitySection.module.cssindex 1f60dc147..8eab90718 100644--- a/fluxer_app/src/features/user/components/profile/VoiceActivitySection.module.css+++ b/fluxer_app/src/features/user/components/profile/VoiceActivitySection.module.css@@ -21,7 +21,7 @@gap: 0.5rem;max-height: min(56vh, 32.5rem);overflow-y: auto;- padding-right: 0.125rem;+ padding-inline-end: 0.125rem;}.gridItem {diff --git a/fluxer_app/src/features/user/components/profile/profile_card/ProfileCardBanner.module.css b/fluxer_app/src/features/user/components/profile/profile_card/ProfileCardBanner.module.cssindex 87340bfd2..42fc1614e 100644--- a/fluxer_app/src/features/user/components/profile/profile_card/ProfileCardBanner.module.css+++ b/fluxer_app/src/features/user/components/profile/profile_card/ProfileCardBanner.module.css@@ -10,8 +10,8 @@min-height: 6.5625rem;position: relative;overflow: hidden;- border-top-left-radius: calc(0.375rem - var(--profile-card-border-width, 0.15625rem));- border-top-right-radius: calc(0.375rem - var(--profile-card-border-width, 0.15625rem));+ border-start-start-radius: calc(0.375rem - var(--profile-card-border-width, 0.15625rem));+ border-start-end-radius: calc(0.375rem - var(--profile-card-border-width, 0.15625rem));}.banner {@@ -32,7 +32,7 @@.avatarButton {position: absolute;top: var(--profile-popout-avatar-top, 3.4375rem);- left: var(--profile-popout-avatar-left, 0.625rem);+ inset-inline-start: var(--profile-popout-avatar-left, 0.625rem);z-index: 1;border: var(--profile-popout-avatar-border, 0.2rem) solid var(--background-primary);border-radius: 624.9375rem;diff --git a/fluxer_app/src/features/user/components/profile/profile_card/ProfileCardContent.module.css b/fluxer_app/src/features/user/components/profile/profile_card/ProfileCardContent.module.cssindex e93c7a33f..43933282c 100644--- a/fluxer_app/src/features/user/components/profile/profile_card/ProfileCardContent.module.css+++ b/fluxer_app/src/features/user/components/profile/profile_card/ProfileCardContent.module.css@@ -5,8 +5,8 @@flex-direction: column;gap: 0.5rem;padding-top: 0.5rem;- padding-left: 1rem;- padding-right: 1rem;+ padding-inline-start: 1rem;+ padding-inline-end: 1rem;}.contentSectionWebhook {diff --git a/fluxer_app/src/features/user/components/profile/profile_card/ProfileCardFooter.module.css b/fluxer_app/src/features/user/components/profile/profile_card/ProfileCardFooter.module.cssindex ea298bf27..a1c4ed6c2 100644--- a/fluxer_app/src/features/user/components/profile/profile_card/ProfileCardFooter.module.css+++ b/fluxer_app/src/features/user/components/profile/profile_card/ProfileCardFooter.module.css@@ -8,8 +8,8 @@gap: 0.5rem;width: 100%;padding-top: 1rem;- padding-left: 0.75rem;- padding-right: 0.75rem;+ padding-inline-start: 0.75rem;+ padding-inline-end: 0.75rem;}.footerSection > * {diff --git a/fluxer_app/src/features/user/components/profile/profile_card/ProfileCardUserInfo.module.css b/fluxer_app/src/features/user/components/profile/profile_card/ProfileCardUserInfo.module.cssindex 6fd088aca..15255228f 100644--- a/fluxer_app/src/features/user/components/profile/profile_card/ProfileCardUserInfo.module.css+++ b/fluxer_app/src/features/user/components/profile/profile_card/ProfileCardUserInfo.module.css@@ -23,7 +23,7 @@border: none;background: transparent;padding: 0;- text-align: left;+ text-align: start;vertical-align: middle;font-weight: 500;color: var(--text-primary);@@ -46,7 +46,7 @@}.userTagWrapper {- margin-left: 0.25rem;+ margin-inline-start: 0.25rem;}.actionsContainer {@@ -77,7 +77,7 @@border: none;background: transparent;padding: 0;- text-align: left;+ text-align: start;font: inherit;color: inherit;line-height: 1.125rem;