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 properties in dialogs and popouts

Hampusd2284e935e4c
diff --git a/fluxer_app/src/features/app/components/dialogs/components/AllSettingsRenderer.module.css b/fluxer_app/src/features/app/components/dialogs/components/AllSettingsRenderer.module.css
index 442cec868..c5ee1bd22 100644
--- a/fluxer_app/src/features/app/components/dialogs/components/AllSettingsRenderer.module.css
+++ b/fluxer_app/src/features/app/components/dialogs/components/AllSettingsRenderer.module.css
@@ -25,7 +25,7 @@
padding: var(--spacing-2) var(--spacing-3);
cursor: pointer;
width: 100%;
- text-align: left;
+ text-align: start;
background: var(--settings-surface-background, var(--form-surface-background));
border: 0.0625rem solid var(--settings-border-color, var(--background-modifier-accent));
border-radius: 0.5rem;
@@ -76,7 +76,7 @@
background: var(--settings-hover-background, var(--surface-interactive-hover-bg));
border: 0.0625rem solid var(--settings-border-color, var(--background-modifier-accent));
border-radius: 999px;
- margin-left: auto;
+ margin-inline-start: auto;
font-weight: 500;
}
diff --git a/fluxer_app/src/features/app/components/dialogs/components/ClientInfo.module.css b/fluxer_app/src/features/app/components/dialogs/components/ClientInfo.module.css
index 6d80cd0d6..2939eaf80 100644
--- a/fluxer_app/src/features/app/components/dialogs/components/ClientInfo.module.css
+++ b/fluxer_app/src/features/app/components/dialogs/components/ClientInfo.module.css
@@ -10,7 +10,7 @@
border: none;
background-color: transparent;
padding: 0;
- text-align: left;
+ text-align: start;
font-size: 0.6875rem;
line-height: 0.875rem;
color: var(--text-primary-muted);
diff --git a/fluxer_app/src/features/app/components/dialogs/components/DesktopSettingsView.module.css b/fluxer_app/src/features/app/components/dialogs/components/DesktopSettingsView.module.css
index 3a9ddd96d..cd68844d5 100644
--- a/fluxer_app/src/features/app/components/dialogs/components/DesktopSettingsView.module.css
+++ b/fluxer_app/src/features/app/components/dialogs/components/DesktopSettingsView.module.css
@@ -48,7 +48,7 @@
margin-top: 0.75rem;
font-size: 0.6875rem;
line-height: 1.25;
- text-align: left;
+ text-align: start;
}
.footerContent {
diff --git a/fluxer_app/src/features/app/components/dialogs/components/MobileGuildSettingsView.module.css b/fluxer_app/src/features/app/components/dialogs/components/MobileGuildSettingsView.module.css
index ace5bd689..2c1cd4c95 100644
--- a/fluxer_app/src/features/app/components/dialogs/components/MobileGuildSettingsView.module.css
+++ b/fluxer_app/src/features/app/components/dialogs/components/MobileGuildSettingsView.module.css
@@ -6,12 +6,12 @@
}
.contentContainer {
- margin-left: auto;
- margin-right: auto;
+ margin-inline-start: auto;
+ margin-inline-end: auto;
width: 100%;
max-width: 43.5rem;
- padding-left: 1rem;
- padding-right: 1rem;
+ padding-inline-start: 1rem;
+ padding-inline-end: 1rem;
padding-top: 1rem;
padding-bottom: calc(1rem + env(safe-area-inset-bottom, 1.25rem));
}
diff --git a/fluxer_app/src/features/app/components/dialogs/components/MobileSettingsView.module.css b/fluxer_app/src/features/app/components/dialogs/components/MobileSettingsView.module.css
index fdb800180..3b25a8b62 100644
--- a/fluxer_app/src/features/app/components/dialogs/components/MobileSettingsView.module.css
+++ b/fluxer_app/src/features/app/components/dialogs/components/MobileSettingsView.module.css
@@ -7,8 +7,8 @@
align-items: center;
background: var(--settings-surface-background, var(--background-primary));
border-bottom: 0.0625rem solid var(--settings-border-color, var(--background-modifier-accent));
- padding-left: 1rem;
- padding-right: 1rem;
+ padding-inline-start: 1rem;
+ padding-inline-end: 1rem;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
transition-duration: 200ms;
}
@@ -124,8 +124,8 @@
.categoryTitle {
margin-bottom: 0.375rem;
- padding-left: 0.625rem;
- padding-right: 0.625rem;
+ padding-inline-start: 0.625rem;
+ padding-inline-end: 0.625rem;
font-weight: 600;
font-size: 0.6875rem;
line-height: 1rem;
@@ -188,7 +188,7 @@
.settingsItemContent {
flex: 1;
- text-align: left;
+ text-align: start;
}
.settingsItemLabelContainer {
@@ -198,7 +198,7 @@
}
.settingsItemSpinner {
- margin-left: 0.25rem;
+ margin-inline-start: 0.25rem;
}
.settingsItemLabel {
@@ -224,8 +224,8 @@
.divider {
height: 0.0625rem;
- margin-left: 0.75rem;
- margin-right: 0.75rem;
+ margin-inline-start: 0.75rem;
+ margin-inline-end: 0.75rem;
background-color: var(--settings-border-color, var(--background-modifier-accent));
}
@@ -234,12 +234,12 @@
}
.contentContainer {
- margin-left: auto;
- margin-right: auto;
+ margin-inline-start: auto;
+ margin-inline-end: auto;
width: 100%;
max-width: 43.5rem;
- padding-left: 1rem;
- padding-right: 1rem;
+ padding-inline-start: 1rem;
+ padding-inline-end: 1rem;
padding-top: 1rem;
padding-bottom: calc(1rem + env(safe-area-inset-bottom, 1.25rem));
}
diff --git a/fluxer_app/src/features/app/components/dialogs/components/PurchaseDisclaimer.module.css b/fluxer_app/src/features/app/components/dialogs/components/PurchaseDisclaimer.module.css
index 2f85acadb..a43af18fb 100644
--- a/fluxer_app/src/features/app/components/dialogs/components/PurchaseDisclaimer.module.css
+++ b/fluxer_app/src/features/app/components/dialogs/components/PurchaseDisclaimer.module.css
@@ -11,5 +11,5 @@
}
.left {
- text-align: left;
+ text-align: start;
}
diff --git a/fluxer_app/src/features/app/components/dialogs/components/SettingsModalHeader.module.css b/fluxer_app/src/features/app/components/dialogs/components/SettingsModalHeader.module.css
index a203346d5..3a28058ef 100644
--- a/fluxer_app/src/features/app/components/dialogs/components/SettingsModalHeader.module.css
+++ b/fluxer_app/src/features/app/components/dialogs/components/SettingsModalHeader.module.css
@@ -47,7 +47,7 @@
min-width: 0;
align-items: center;
gap: 0.5rem;
- margin-right: 1rem;
+ margin-inline-end: 1rem;
}
.title {
diff --git a/fluxer_app/src/features/app/components/dialogs/shared/AddOverridePopout.module.css b/fluxer_app/src/features/app/components/dialogs/shared/AddOverridePopout.module.css
index 4460dee77..0c79c92b1 100644
--- a/fluxer_app/src/features/app/components/dialogs/shared/AddOverridePopout.module.css
+++ b/fluxer_app/src/features/app/components/dialogs/shared/AddOverridePopout.module.css
@@ -45,7 +45,7 @@
border: 0.0625rem solid transparent;
border-radius: 0.375rem;
padding: 0.3125rem 0.5rem;
- text-align: left;
+ text-align: start;
font-size: 0.8125rem;
line-height: 1.125rem;
color: var(--text-primary);
@@ -73,8 +73,8 @@
}
.emptyState {
- padding-left: 0.5rem;
- padding-right: 0.5rem;
+ padding-inline-start: 0.5rem;
+ padding-inline-end: 0.5rem;
padding-top: 1rem;
padding-bottom: 1rem;
text-align: center;
diff --git a/fluxer_app/src/features/app/components/dialogs/shared/DesktopEntitySettingsView.tsx b/fluxer_app/src/features/app/components/dialogs/shared/DesktopEntitySettingsView.tsx
index a40d0b650..2595efd68 100644
--- a/fluxer_app/src/features/app/components/dialogs/shared/DesktopEntitySettingsView.tsx
+++ b/fluxer_app/src/features/app/components/dialogs/shared/DesktopEntitySettingsView.tsx
@@ -16,11 +16,12 @@ import {openMessageHistoryThresholdSettings} from '@app/features/guild/utils/gui
import {BACK_TO_SETTINGS_DESCRIPTOR} from '@app/features/i18n/utils/CommonMessageDescriptors';
import {Button} from '@app/features/ui/button/Button';
import * as ModalCommands from '@app/features/ui/commands/ModalCommands';
+import {ArrowLeftIcon, ArrowRightIcon} from '@app/features/ui/icons/DirectionalIcons';
import SettingsSidebar from '@app/features/ui/state/SettingsSidebar';
import {useUnsavedChangesFlash} from '@app/features/user/hooks/useUnsavedChangesFlash';
import {msg} from '@lingui/core/macro';
import {useLingui} from '@lingui/react/macro';
-import {ArrowLeftIcon, ArrowRightIcon, type Icon, type IconWeight} from '@phosphor-icons/react';
+import type {Icon, IconWeight} from '@phosphor-icons/react';
import {AnimatePresence, motion} from 'framer-motion';
import {observer} from 'mobx-react-lite';
import type React from 'react';
diff --git a/fluxer_app/src/features/app/components/dialogs/shared/MobileSettingsComponents.module.css b/fluxer_app/src/features/app/components/dialogs/shared/MobileSettingsComponents.module.css
index 1691b8322..e9857b763 100644
--- a/fluxer_app/src/features/app/components/dialogs/shared/MobileSettingsComponents.module.css
+++ b/fluxer_app/src/features/app/components/dialogs/shared/MobileSettingsComponents.module.css
@@ -7,8 +7,8 @@
align-items: center;
background-color: var(--settings-surface-background, var(--background-primary));
border-bottom: 0.0625rem solid var(--settings-border-color, var(--background-modifier-accent));
- padding-left: 1rem;
- padding-right: 1rem;
+ padding-inline-start: 1rem;
+ padding-inline-end: 1rem;
}
.headerContent {
@@ -71,8 +71,8 @@
.settingsList {
min-height: 0;
flex: 1 1 0%;
- padding-left: 1rem;
- padding-right: 1rem;
+ padding-inline-start: 1rem;
+ padding-inline-end: 1rem;
padding-top: 1rem;
padding-bottom: 1rem;
}
@@ -87,8 +87,8 @@
.categoryHeader {
margin-bottom: 0.375rem;
- padding-left: 0.625rem;
- padding-right: 0.625rem;
+ padding-inline-start: 0.625rem;
+ padding-inline-end: 0.625rem;
font-weight: 600;
color: var(--text-tertiary);
font-size: 0.6875rem;
@@ -149,7 +149,7 @@
.dangerContent {
flex: 1;
- text-align: left;
+ text-align: start;
}
.dangerLabel {
@@ -206,7 +206,7 @@
.tabContent {
flex: 1 1 0%;
- text-align: left;
+ text-align: start;
}
.tabLabel {
@@ -224,8 +224,8 @@
}
.tabDivider {
- margin-left: 0.75rem;
- margin-right: 0.75rem;
+ margin-inline-start: 0.75rem;
+ margin-inline-end: 0.75rem;
height: 0.0625rem;
background-color: var(--settings-border-color, var(--background-modifier-accent));
}
diff --git a/fluxer_app/src/features/app/components/dialogs/shared/MobileSettingsComponents.tsx b/fluxer_app/src/features/app/components/dialogs/shared/MobileSettingsComponents.tsx
index f381a68a4..1a4c00ac4 100644
--- a/fluxer_app/src/features/app/components/dialogs/shared/MobileSettingsComponents.tsx
+++ b/fluxer_app/src/features/app/components/dialogs/shared/MobileSettingsComponents.tsx
@@ -10,10 +10,10 @@ import {usePressable} from '@app/features/app/hooks/usePressable';
import {GO_BACK_DESCRIPTOR} from '@app/features/i18n/utils/CommonMessageDescriptors';
import {isKeyboardActivationKey} from '@app/features/input/utils/KeyboardUtils';
import {Scroller, type ScrollerHandle} from '@app/features/ui/components/Scroller';
+import {ArrowLeftIcon} from '@app/features/ui/icons/DirectionalIcons';
import type {TabData} from '@app/features/ui/state/UnsavedChanges';
import {Trans, useLingui} from '@lingui/react/macro';
import type {Icon, IconWeight} from '@phosphor-icons/react';
-import {ArrowLeftIcon} from '@phosphor-icons/react';
import {clsx} from 'clsx';
import {AnimatePresence, motion} from 'framer-motion';
import {observer} from 'mobx-react-lite';
diff --git a/fluxer_app/src/features/app/components/dialogs/shared/SelectorModalStyles.module.css b/fluxer_app/src/features/app/components/dialogs/shared/SelectorModalStyles.module.css
index 88da45707..f30051e18 100644
--- a/fluxer_app/src/features/app/components/dialogs/shared/SelectorModalStyles.module.css
+++ b/fluxer_app/src/features/app/components/dialogs/shared/SelectorModalStyles.module.css
@@ -80,7 +80,7 @@
border-radius: 0;
padding: 0.5rem 1rem;
background-color: transparent;
- text-align: left;
+ text-align: start;
cursor: pointer;
box-sizing: border-box;
transition: none;
diff --git a/fluxer_app/src/features/app/components/floating/UnreadChannelsContent.module.css b/fluxer_app/src/features/app/components/floating/UnreadChannelsContent.module.css
index a0867dbe9..95eeeeea3 100644
--- a/fluxer_app/src/features/app/components/floating/UnreadChannelsContent.module.css
+++ b/fluxer_app/src/features/app/components/floating/UnreadChannelsContent.module.css
@@ -116,7 +116,7 @@
display: none;
position: absolute;
top: 0.375rem;
- right: 0.5rem;
+ inset-inline-end: 0.5rem;
gap: 0.25rem;
}
diff --git a/fluxer_app/src/features/app/components/floating/UserAreaPopout.module.css b/fluxer_app/src/features/app/components/floating/UserAreaPopout.module.css
index 5db2f5437..f8bc2b7c4 100644
--- a/fluxer_app/src/features/app/components/floating/UserAreaPopout.module.css
+++ b/fluxer_app/src/features/app/components/floating/UserAreaPopout.module.css
@@ -97,7 +97,7 @@
border: none;
background: transparent;
color: var(--text-primary);
- text-align: left;
+ text-align: start;
font-weight: 500;
cursor: pointer;
transition: none;
@@ -109,8 +109,8 @@
}
.actionDivider {
- margin-left: 0.75rem;
- margin-right: 0.75rem;
+ margin-inline-start: 0.75rem;
+ margin-inline-end: 0.75rem;
height: 0.0625rem;
background-color: var(--background-header-secondary);
opacity: 0.3;
@@ -166,7 +166,7 @@
display: flex;
flex-direction: column;
width: 17.5rem;
- margin-left: 1rem;
+ margin-inline-start: 1rem;
filter: none;
}
@@ -175,7 +175,7 @@
display: flex;
flex-direction: column;
width: 13.75rem;
- margin-left: 0.375rem;
+ margin-inline-start: 0.375rem;
filter: none;
}
diff --git a/fluxer_app/src/features/app/components/pages/YouPage.module.css b/fluxer_app/src/features/app/components/pages/YouPage.module.css
index 929da5142..4a8a16e32 100644
--- a/fluxer_app/src/features/app/components/pages/YouPage.module.css
+++ b/fluxer_app/src/features/app/components/pages/YouPage.module.css
@@ -39,7 +39,7 @@
.avatarButton {
position: absolute;
- left: 1rem;
+ inset-inline-start: 1rem;
top: -2.5rem;
border: 0.25rem solid var(--background-primary);
background-color: var(--background-primary);
@@ -48,15 +48,15 @@
}
.content {
- padding-left: 1rem;
- padding-right: 1rem;
+ padding-inline-start: 1rem;
+ padding-inline-end: 1rem;
padding-top: 3rem;
}
.actions {
position: absolute;
top: 1rem;
- right: 1rem;
+ inset-inline-end: 1rem;
z-index: 10;
display: flex;
gap: 0.5rem;
@@ -113,7 +113,7 @@
display: flex;
align-items: center;
flex-wrap: wrap;
- gap: 0.375rem;
+ gap: 0.5rem;
min-width: 0;
}
@@ -192,7 +192,7 @@
border-radius: 0.75rem;
background-color: var(--background-secondary);
padding: 1rem;
- text-align: left;
+ text-align: start;
}
.noteLabel {
diff --git a/fluxer_app/src/features/app/components/shared/MessagePreview.module.css b/fluxer_app/src/features/app/components/shared/MessagePreview.module.css
index 4a5c2d4f2..c7a317fe8 100644
--- a/fluxer_app/src/features/app/components/shared/MessagePreview.module.css
+++ b/fluxer_app/src/features/app/components/shared/MessagePreview.module.css
@@ -31,7 +31,7 @@
display: none;
position: absolute;
top: 0.75rem;
- right: 0.75rem;
+ inset-inline-end: 0.75rem;
gap: 0.25rem;
}
diff --git a/fluxer_app/src/features/app/components/shared/MessageReactionsContent.module.css b/fluxer_app/src/features/app/components/shared/MessageReactionsContent.module.css
index 20f94ac44..a4cbedc78 100644
--- a/fluxer_app/src/features/app/components/shared/MessageReactionsContent.module.css
+++ b/fluxer_app/src/features/app/components/shared/MessageReactionsContent.module.css
@@ -131,7 +131,7 @@
}
.removeReactionButton {
- margin-left: 0.5rem;
+ margin-inline-start: 0.5rem;
flex: none;
color: var(--text-chat-muted);
cursor: pointer;
diff --git a/fluxer_app/src/features/app/components/shared/custom_status_display/CustomStatusDisplay.module.css b/fluxer_app/src/features/app/components/shared/custom_status_display/CustomStatusDisplay.module.css
index fd225c8ce..94abf64d5 100644
--- a/fluxer_app/src/features/app/components/shared/custom_status_display/CustomStatusDisplay.module.css
+++ b/fluxer_app/src/features/app/components/shared/custom_status_display/CustomStatusDisplay.module.css
@@ -120,7 +120,7 @@ img.statusEmoji {
border: none;
background: transparent;
cursor: pointer;
- text-align: left;
+ text-align: start;
}
.editableWrapper .content {
diff --git a/fluxer_app/src/features/app/domain_migration/DomainMovedStepsModal.module.css b/fluxer_app/src/features/app/domain_migration/DomainMovedStepsModal.module.css
index 71cb39271..757dd657b 100644
--- a/fluxer_app/src/features/app/domain_migration/DomainMovedStepsModal.module.css
+++ b/fluxer_app/src/features/app/domain_migration/DomainMovedStepsModal.module.css
@@ -9,12 +9,12 @@
flex-direction: column;
gap: 0.5rem;
margin: 0;
- padding-left: 1.25rem;
+ padding-inline-start: 1.25rem;
color: var(--text-primary);
list-style: decimal;
}
.step {
- padding-left: 0.25rem;
+ padding-inline-start: 0.25rem;
line-height: 1.4;
}