Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

style(app): use logical CSS in settings modals, drop unused vars

Hampuse3383d62c441
diff --git a/fluxer_app/src/features/user/components/modals/BaseChangeNicknameModal.module.css b/fluxer_app/src/features/user/components/modals/BaseChangeNicknameModal.module.css
index 1103b3753..0d2b3b55e 100644
--- a/fluxer_app/src/features/user/components/modals/BaseChangeNicknameModal.module.css
+++ b/fluxer_app/src/features/user/components/modals/BaseChangeNicknameModal.module.css
@@ -3,7 +3,7 @@
.clearButton {
position: absolute;
top: 50%;
- right: 0.5rem;
+ inset-inline-end: 0.5rem;
transform: translateY(-50%);
padding: 0.25rem;
color: var(--text-tertiary);
diff --git a/fluxer_app/src/features/user/components/modals/CustomStatusModal.module.css b/fluxer_app/src/features/user/components/modals/CustomStatusModal.module.css
index 6b50e39b3..955870af0 100644
--- a/fluxer_app/src/features/user/components/modals/CustomStatusModal.module.css
+++ b/fluxer_app/src/features/user/components/modals/CustomStatusModal.module.css
@@ -38,7 +38,7 @@
.characterCount {
font-size: 0.75rem;
color: var(--text-tertiary);
- text-align: right;
+ text-align: end;
}
.emojiTriggerButton {
diff --git a/fluxer_app/src/features/user/components/modals/MutualItemsSheet.module.css b/fluxer_app/src/features/user/components/modals/MutualItemsSheet.module.css
index f51b42557..f052174ac 100644
--- a/fluxer_app/src/features/user/components/modals/MutualItemsSheet.module.css
+++ b/fluxer_app/src/features/user/components/modals/MutualItemsSheet.module.css
@@ -36,7 +36,7 @@
padding: 0.625rem 0.75rem;
border-radius: 0.75rem;
cursor: pointer;
- text-align: left;
+ text-align: start;
}
.item:active {
diff --git a/fluxer_app/src/features/user/components/modals/StatusChangeBottomSheet.module.css b/fluxer_app/src/features/user/components/modals/StatusChangeBottomSheet.module.css
index b398363ec..a37b1cba4 100644
--- a/fluxer_app/src/features/user/components/modals/StatusChangeBottomSheet.module.css
+++ b/fluxer_app/src/features/user/components/modals/StatusChangeBottomSheet.module.css
@@ -44,7 +44,7 @@
justify-content: space-between;
gap: 0.75rem;
padding: 0.875rem 1rem;
- text-align: left;
+ text-align: start;
transition: none;
cursor: pointer;
}
@@ -114,8 +114,8 @@
}
.divider {
- 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;
@@ -130,8 +130,9 @@
.expiryItem {
width: 100%;
- padding: 0.625rem 1rem 0.625rem 2.5rem;
- text-align: left;
+ padding-block: 0.625rem;
+ padding-inline: 2.5rem 1rem;
+ text-align: start;
font-size: 0.875rem;
font-weight: 500;
color: var(--text-secondary);
@@ -173,7 +174,7 @@
padding: 0.875rem 1rem;
border-radius: 0.75rem;
background-color: var(--background-secondary-alt);
- text-align: left;
+ text-align: start;
cursor: pointer;
transition: none;
}
diff --git a/fluxer_app/src/features/user/components/modals/UserSettingsModal.module.css b/fluxer_app/src/features/user/components/modals/UserSettingsModal.module.css
index 941153a5b..30274c459 100644
--- a/fluxer_app/src/features/user/components/modals/UserSettingsModal.module.css
+++ b/fluxer_app/src/features/user/components/modals/UserSettingsModal.module.css
@@ -13,7 +13,7 @@
min-width: 0;
background: var(--settings-surface-background, var(--form-surface-background));
color: inherit;
- text-align: left;
+ text-align: start;
cursor: pointer;
box-sizing: border-box;
transition: none;
@@ -47,7 +47,7 @@
white-space: nowrap;
flex: 1 1 0;
min-width: 0;
- margin-right: 0.5rem;
+ margin-inline-end: 0.5rem;
}
.mobileWrapper {
@@ -80,7 +80,7 @@
.mobileContentPane {
position: absolute;
top: 0;
- left: 0;
+ inset-inline-start: 0;
width: 100%;
height: 100%;
display: flex;
diff --git a/fluxer_app/src/features/user/components/modals/tabs/AppearanceTab.module.css b/fluxer_app/src/features/user/components/modals/tabs/AppearanceTab.module.css
index f6421c3e5..72d71fcaf 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/AppearanceTab.module.css
+++ b/fluxer_app/src/features/user/components/modals/tabs/AppearanceTab.module.css
@@ -35,9 +35,9 @@
.previewMessagesContainer :global(.message),
.previewMessagesContainer :global(.messageCompact) {
- margin-left: 0 !important;
- margin-right: 0 !important;
- padding-right: var(--chat-horizontal-padding, 1rem) !important;
+ margin-inline-start: 0 !important;
+ margin-inline-end: 0 !important;
+ padding-inline-end: var(--chat-horizontal-padding, 1rem) !important;
pointer-events: none;
}
@@ -47,9 +47,9 @@
.previewOverlay {
position: absolute;
- right: 0;
+ inset-inline-end: 0;
bottom: 0;
- left: 0;
+ inset-inline-start: 0;
cursor: default;
content: '';
pointer-events: none;
diff --git a/fluxer_app/src/features/user/components/modals/tabs/BlockedUsersTab.module.css b/fluxer_app/src/features/user/components/modals/tabs/BlockedUsersTab.module.css
index 0ac7fe607..871149df0 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/BlockedUsersTab.module.css
+++ b/fluxer_app/src/features/user/components/modals/tabs/BlockedUsersTab.module.css
@@ -39,7 +39,7 @@
padding: 0;
border: 0;
background-color: transparent;
- text-align: left;
+ text-align: start;
cursor: pointer;
}
diff --git a/fluxer_app/src/features/user/components/modals/tabs/DevicesTab.module.css b/fluxer_app/src/features/user/components/modals/tabs/DevicesTab.module.css
index b00722e69..107612088 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/DevicesTab.module.css
+++ b/fluxer_app/src/features/user/components/modals/tabs/DevicesTab.module.css
@@ -4,8 +4,8 @@
display: inline-block;
height: 0.25rem;
width: 0.25rem;
- margin-left: 0.25rem;
- margin-right: 0.25rem;
+ margin-inline-start: 0.25rem;
+ margin-inline-end: 0.25rem;
border-radius: 624.9375rem;
background-color: var(--text-primary-muted);
vertical-align: middle;
diff --git a/fluxer_app/src/features/user/components/modals/tabs/GiftInventoryTab.module.css b/fluxer_app/src/features/user/components/modals/tabs/GiftInventoryTab.module.css
index f9c5b48ad..9c2215771 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/GiftInventoryTab.module.css
+++ b/fluxer_app/src/features/user/components/modals/tabs/GiftInventoryTab.module.css
@@ -40,7 +40,7 @@
align-items: center;
gap: 0.75rem;
padding: 1rem;
- text-align: left;
+ text-align: start;
transition: background-color 0.15s;
cursor: pointer;
}
diff --git a/fluxer_app/src/features/user/components/modals/tabs/KeybindsTab.module.css b/fluxer_app/src/features/user/components/modals/tabs/KeybindsTab.module.css
index 5039e3d88..82d6b6518 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/KeybindsTab.module.css
+++ b/fluxer_app/src/features/user/components/modals/tabs/KeybindsTab.module.css
@@ -155,7 +155,7 @@
.customHint {
font-size: 0.75rem;
color: var(--text-primary-muted);
- padding-left: 0.125rem;
+ padding-inline-start: 0.125rem;
}
.emptyState {
diff --git a/fluxer_app/src/features/user/components/modals/tabs/LanguageTab.module.css b/fluxer_app/src/features/user/components/modals/tabs/LanguageTab.module.css
index 38797d5ca..0ee105874 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/LanguageTab.module.css
+++ b/fluxer_app/src/features/user/components/modals/tabs/LanguageTab.module.css
@@ -219,7 +219,8 @@
display: inline-flex;
align-items: center;
gap: 0.25rem;
- padding: 0.25rem 0.5rem 0.25rem 0.625rem;
+ padding-block: 0.25rem;
+ padding-inline: 0.625rem 0.5rem;
border-radius: 62.4375rem;
background: var(--background-modifier-accent);
color: var(--text-primary);
diff --git a/fluxer_app/src/features/user/components/modals/tabs/UserVideoTab.module.css b/fluxer_app/src/features/user/components/modals/tabs/UserVideoTab.module.css
index daabd5f63..8f1ff51ac 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/UserVideoTab.module.css
+++ b/fluxer_app/src/features/user/components/modals/tabs/UserVideoTab.module.css
@@ -83,6 +83,8 @@
display: flex;
align-items: center;
gap: 0.25rem;
+ margin-top: -0.25rem;
+ margin-bottom: 0.5rem;
font-size: 0.8125rem;
color: var(--text-primary-muted);
}
diff --git a/fluxer_app/src/features/user/components/modals/tabs/appearance_tab/InterfaceTab.module.css b/fluxer_app/src/features/user/components/modals/tabs/appearance_tab/InterfaceTab.module.css
index a9ba1390d..7005d2712 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/appearance_tab/InterfaceTab.module.css
+++ b/fluxer_app/src/features/user/components/modals/tabs/appearance_tab/InterfaceTab.module.css
@@ -29,7 +29,7 @@
.typingAnimationWrapper {
width: 1.25rem;
height: 1.25rem;
- margin-right: 0;
+ margin-inline-end: 0;
flex-shrink: 0;
}
diff --git a/fluxer_app/src/features/user/components/modals/tabs/applications_tab/ApplicationsTab.module.css b/fluxer_app/src/features/user/components/modals/tabs/applications_tab/ApplicationsTab.module.css
index d2f11fe35..afecacdc6 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/applications_tab/ApplicationsTab.module.css
+++ b/fluxer_app/src/features/user/components/modals/tabs/applications_tab/ApplicationsTab.module.css
@@ -50,7 +50,7 @@
padding: 0 var(--input-container-padding);
background: transparent;
border: none;
- text-align: left;
+ text-align: start;
cursor: pointer;
transition: none;
}
diff --git a/fluxer_app/src/features/user/components/modals/tabs/component_gallery_tab/SelectionsTab.module.css b/fluxer_app/src/features/user/components/modals/tabs/component_gallery_tab/SelectionsTab.module.css
index 669651b10..4dfea303d 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/component_gallery_tab/SelectionsTab.module.css
+++ b/fluxer_app/src/features/user/components/modals/tabs/component_gallery_tab/SelectionsTab.module.css
@@ -41,7 +41,7 @@
.sliderValue {
min-width: 3.5rem;
- text-align: right;
+ text-align: end;
font-family: monospace;
font-size: 0.875rem;
color: var(--text-primary);
@@ -49,7 +49,7 @@
.sliderValueDisabled {
min-width: 3.5rem;
- text-align: right;
+ text-align: end;
font-family: monospace;
font-size: 0.875rem;
color: var(--text-tertiary);
diff --git a/fluxer_app/src/features/user/components/modals/tabs/components/CompactComboboxRow.module.css b/fluxer_app/src/features/user/components/modals/tabs/components/CompactComboboxRow.module.css
index a133f72c3..80de374bc 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/components/CompactComboboxRow.module.css
+++ b/fluxer_app/src/features/user/components/modals/tabs/components/CompactComboboxRow.module.css
@@ -46,7 +46,7 @@
.description {
margin: 0;
- padding-right: 1rem;
+ padding-inline-end: 1rem;
font-size: 0.8125rem;
line-height: 1.25rem;
color: var(--text-primary-muted);
@@ -70,8 +70,8 @@
);
min-width: 0;
max-width: min(100%, var(--compact-combobox-max-width));
- flex: 0 1 auto;
- margin-left: auto;
+ flex: 0 0 auto;
+ margin-inline-start: auto;
}
.comboboxWrapSmall {
@@ -105,7 +105,7 @@
}
.description {
- padding-right: 0;
+ padding-inline-end: 0;
}
.comboboxWrap,
diff --git a/fluxer_app/src/features/user/components/modals/tabs/components/EntranceSoundSection.module.css b/fluxer_app/src/features/user/components/modals/tabs/components/EntranceSoundSection.module.css
index 685384222..1d96454b5 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/components/EntranceSoundSection.module.css
+++ b/fluxer_app/src/features/user/components/modals/tabs/components/EntranceSoundSection.module.css
@@ -42,15 +42,7 @@
);
--entrance-sound-border: var(--settings-border-color, var(--background-modifier-accent));
--entrance-sound-hover-background: var(--settings-hover-background, var(--surface-interactive-hover-bg));
- --entrance-sound-hover-border: var(
- --settings-hover-border-color,
- color-mix(in srgb, var(--background-modifier-accent) 72%, var(--text-tertiary))
- );
--entrance-sound-selected-background: var(--settings-selected-background, var(--surface-interactive-selected-bg));
- --entrance-sound-selected-border: var(
- --settings-selected-border-color,
- color-mix(in srgb, var(--background-modifier-accent) 72%, var(--text-tertiary))
- );
--entrance-sound-selected-color: var(--settings-selected-color, var(--surface-interactive-selected-color));
display: flex;
flex-direction: column;
@@ -130,10 +122,11 @@
border: 0.0625rem solid transparent;
border-radius: 0.375rem;
background: transparent;
- padding: 0.4375rem 2rem 0.4375rem 0.5rem;
+ padding-block: 0.4375rem;
+ padding-inline: 0.5rem 2rem;
color: var(--text-primary);
cursor: pointer;
- text-align: left;
+ text-align: start;
transition:
background-color 150ms ease,
border-color 150ms ease,
@@ -156,7 +149,8 @@
.scopeTileCompact {
min-height: 2.25rem;
gap: 0.5rem;
- padding: 0.375rem 1.875rem 0.375rem 0.5rem;
+ padding-block: 0.375rem;
+ padding-inline: 0.5rem 1.875rem;
}
.scopeIconWrap {
@@ -242,7 +236,7 @@
.scopeTileCheck {
position: absolute;
top: 50%;
- right: 0.5rem;
+ inset-inline-end: 0.5rem;
display: inline-flex;
height: 1rem;
width: 1rem;
@@ -255,7 +249,7 @@
}
.scopeTileCompact .scopeTileCheck {
- right: 0.5rem;
+ inset-inline-end: 0.5rem;
height: 0.875rem;
width: 0.875rem;
}
diff --git a/fluxer_app/src/features/user/components/modals/tabs/components/MicTestSection.module.css b/fluxer_app/src/features/user/components/modals/tabs/components/MicTestSection.module.css
index c8eacd98b..61585f0fc 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/components/MicTestSection.module.css
+++ b/fluxer_app/src/features/user/components/modals/tabs/components/MicTestSection.module.css
@@ -1,7 +1,6 @@
/* SPDX-License-Identifier: AGPL-3.0-or-later */
.bar {
- --mic-peak-percent: 0%;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
diff --git a/fluxer_app/src/features/user/components/modals/tabs/my_profile_tab/BioEditor.module.css b/fluxer_app/src/features/user/components/modals/tabs/my_profile_tab/BioEditor.module.css
index 8ca3815ad..520c644d5 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/my_profile_tab/BioEditor.module.css
+++ b/fluxer_app/src/features/user/components/modals/tabs/my_profile_tab/BioEditor.module.css
@@ -36,11 +36,6 @@
overflow: hidden;
}
-:global([dir='rtl']) .editor {
- --composer-placeholder-right: 1rem;
- --composer-placeholder-left: 0px;
-}
-
.editor [data-channel-textarea] {
box-sizing: border-box;
min-height: 6.25rem;
diff --git a/fluxer_app/src/features/user/components/modals/tabs/my_profile_tab/ProfileTypeSelector.module.css b/fluxer_app/src/features/user/components/modals/tabs/my_profile_tab/ProfileTypeSelector.module.css
index ad11bdb80..e8cd8c8c4 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/my_profile_tab/ProfileTypeSelector.module.css
+++ b/fluxer_app/src/features/user/components/modals/tabs/my_profile_tab/ProfileTypeSelector.module.css
@@ -25,7 +25,7 @@
.guildOptionGlobal {
gap: 0;
- padding-left: 0;
+ padding-inline-start: 0;
}
.guildAvatar,
diff --git a/fluxer_app/src/features/user/components/modals/tabs/notifications_tab/NotificationsTabSounds.module.css b/fluxer_app/src/features/user/components/modals/tabs/notifications_tab/NotificationsTabSounds.module.css
index 186df91bc..0ead65132 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/notifications_tab/NotificationsTabSounds.module.css
+++ b/fluxer_app/src/features/user/components/modals/tabs/notifications_tab/NotificationsTabSounds.module.css
@@ -55,7 +55,7 @@
font-size: 0.75rem;
line-height: 1rem;
cursor: pointer;
- text-align: left;
+ text-align: start;
}
.previewLink:hover:enabled {
@@ -314,10 +314,6 @@
color: var(--text-muted);
}
-.overrideSlider {
- --slider-track-padding: 0.5rem;
-}
-
.masterResetButton {
flex: 0 0 auto;
width: 1.75rem;
diff --git a/fluxer_app/src/features/user/components/modals/tabs/notifications_tab/NotificationsTabSounds.tsx b/fluxer_app/src/features/user/components/modals/tabs/notifications_tab/NotificationsTabSounds.tsx
index 6c81cadfb..0a2fed099 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/notifications_tab/NotificationsTabSounds.tsx
+++ b/fluxer_app/src/features/user/components/modals/tabs/notifications_tab/NotificationsTabSounds.tsx
@@ -411,7 +411,6 @@ export const Sounds: React.FC<SoundsProps> = observer(
maxValue={200}
step={1}
disabled={rowDisabled}
- className={styles.overrideSlider}
onValueRender={formatPercentage}
onValueChange={(value) => onSoundOverrideChange(type, value)}
data-flx="user.notifications-tab.sounds.slider--2"
diff --git a/fluxer_app/src/features/user/components/modals/tabs/notifications_tab/PushSettings.module.css b/fluxer_app/src/features/user/components/modals/tabs/notifications_tab/PushSettings.module.css
index a4ae83268..abe189ddf 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/notifications_tab/PushSettings.module.css
+++ b/fluxer_app/src/features/user/components/modals/tabs/notifications_tab/PushSettings.module.css
@@ -32,7 +32,7 @@
.description {
margin: 0;
- padding-right: 1rem;
+ padding-inline-end: 1rem;
font-size: 0.875rem;
line-height: 1.25rem;
color: var(--text-primary-muted);
@@ -54,6 +54,6 @@
}
.description {
- padding-right: 0;
+ padding-inline-end: 0;
}
}
diff --git a/fluxer_app/src/features/user/components/modals/tabs/notifications_tab/TextToSpeech.module.css b/fluxer_app/src/features/user/components/modals/tabs/notifications_tab/TextToSpeech.module.css
index c87fbd6d6..363f41ef4 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/notifications_tab/TextToSpeech.module.css
+++ b/fluxer_app/src/features/user/components/modals/tabs/notifications_tab/TextToSpeech.module.css
@@ -10,7 +10,7 @@
background: none;
border: none;
color: var(--text-primary);
- text-align: left;
+ text-align: start;
text-decoration: underline;
padding: 0;
font: inherit;
diff --git a/fluxer_app/src/features/user/components/modals/tabs/privacy_safety_tab/data_request_modal/DataRequestModal.module.css b/fluxer_app/src/features/user/components/modals/tabs/privacy_safety_tab/data_request_modal/DataRequestModal.module.css
index 5fdaeb7dd..b4f0a3200 100644
--- a/fluxer_app/src/features/user/components/modals/tabs/privacy_safety_tab/data_request_modal/DataRequestModal.module.css
+++ b/fluxer_app/src/features/user/components/modals/tabs/privacy_safety_tab/data_request_modal/DataRequestModal.module.css
@@ -47,7 +47,8 @@
border-radius: 0.625rem;
border: 0.0625rem solid var(--background-header-secondary);
background: var(--background-secondary);
- padding: 1.5rem 0.5rem 1.5rem 1.25rem;
+ padding-block: 1.5rem;
+ padding-inline: 1.25rem 0.5rem;
}
.communityListEmpty {