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 voice and settings styles

Hampusa2cd526dc1b3
diff --git a/fluxer_app/src/features/connection/components/pages/ConnectionCallbackPage.module.css b/fluxer_app/src/features/connection/components/pages/ConnectionCallbackPage.module.css
index cedccb73a..8781e4995 100644
--- a/fluxer_app/src/features/connection/components/pages/ConnectionCallbackPage.module.css
+++ b/fluxer_app/src/features/connection/components/pages/ConnectionCallbackPage.module.css
@@ -7,8 +7,8 @@
align-items: center;
justify-content: center;
gap: 2rem;
- padding-left: 1rem;
- padding-right: 1rem;
+ padding-inline-start: 1rem;
+ padding-inline-end: 1rem;
text-align: center;
}
diff --git a/fluxer_app/src/features/devtools/components/debug/DebugModal.module.css b/fluxer_app/src/features/devtools/components/debug/DebugModal.module.css
index c8b7f7eb7..c36e814cd 100644
--- a/fluxer_app/src/features/devtools/components/debug/DebugModal.module.css
+++ b/fluxer_app/src/features/devtools/components/debug/DebugModal.module.css
@@ -73,7 +73,7 @@
.summaryValue {
font-family: var(--font-mono);
color: var(--text-primary);
- text-align: right;
+ text-align: end;
word-break: break-word;
}
diff --git a/fluxer_app/src/features/input/components/KeybindRecorder.module.css b/fluxer_app/src/features/input/components/KeybindRecorder.module.css
index 2eb95d568..a781b8fdb 100644
--- a/fluxer_app/src/features/input/components/KeybindRecorder.module.css
+++ b/fluxer_app/src/features/input/components/KeybindRecorder.module.css
@@ -47,7 +47,7 @@
cursor: pointer;
background-color: var(--form-surface-background);
font-family: var(--font-sans);
- text-align: left;
+ text-align: start;
transition:
border-color 0.15s ease,
box-shadow 0.15s ease;
@@ -101,7 +101,8 @@
width: auto;
max-width: 14rem;
box-sizing: border-box;
- padding: 0.375rem 0.75rem 0.375rem 0;
+ padding-block: 0.375rem;
+ padding-inline: 0 0.75rem;
font-family: inherit;
font-weight: inherit;
font-size: inherit;
diff --git a/fluxer_app/src/features/notification/components/pages/NotificationsPage.module.css b/fluxer_app/src/features/notification/components/pages/NotificationsPage.module.css
index 54b702949..fc2ce3b08 100644
--- a/fluxer_app/src/features/notification/components/pages/NotificationsPage.module.css
+++ b/fluxer_app/src/features/notification/components/pages/NotificationsPage.module.css
@@ -18,8 +18,8 @@
justify-content: space-between;
border-bottom-width: 0.0625rem;
border-color: var(--background-header-secondary);
- padding-left: 1rem;
- padding-right: 1rem;
+ padding-inline-start: 1rem;
+ padding-inline-end: 1rem;
}
.headerActions {
diff --git a/fluxer_app/src/features/permissions/system/components/MacPermissionsSettingsRow.module.css b/fluxer_app/src/features/permissions/system/components/MacPermissionsSettingsRow.module.css
index 7f976e7b5..69db1d183 100644
--- a/fluxer_app/src/features/permissions/system/components/MacPermissionsSettingsRow.module.css
+++ b/fluxer_app/src/features/permissions/system/components/MacPermissionsSettingsRow.module.css
@@ -26,7 +26,8 @@
align-items: center;
gap: var(--spacing-3);
min-height: 2.75rem;
- padding: 0 var(--spacing-2) 0 var(--spacing-4);
+ padding-block: 0;
+ padding-inline: var(--spacing-4) var(--spacing-2);
}
.line + .line {
@@ -79,7 +80,7 @@
display: inline-flex;
align-items: center;
gap: 0.375rem;
- padding-right: var(--spacing-2);
+ padding-inline-end: var(--spacing-2);
color: var(--text-primary-muted);
font-size: 0.875rem;
line-height: 1.25rem;
diff --git a/fluxer_app/src/features/voice/components/IncomingCallUI.module.css b/fluxer_app/src/features/voice/components/IncomingCallUI.module.css
index ae7a67eb2..02dd524d3 100644
--- a/fluxer_app/src/features/voice/components/IncomingCallUI.module.css
+++ b/fluxer_app/src/features/voice/components/IncomingCallUI.module.css
@@ -41,7 +41,6 @@
--ic-circle-size: 4rem;
--ic-circle-gap: 3.5rem;
- --ic-action-icon-size: 1.75rem;
--ic-action-label-size: 0.8125rem;
--ic-action-label-weight: 500;
@@ -62,7 +61,7 @@
z-index: var(--ic-z-index);
position: fixed;
top: 0;
- left: 0;
+ inset-inline-start: 0;
width: min(var(--ic-width), calc(100vw - var(--ic-viewport-margin)));
pointer-events: auto;
isolation: isolate;
@@ -84,8 +83,8 @@
.dragHandle {
position: absolute;
top: 0;
- left: 0;
- right: 0;
+ inset-inline-start: 0;
+ inset-inline-end: 0;
height: var(--ic-drag-handle-height);
display: flex;
align-items: flex-end;
diff --git a/fluxer_app/src/features/voice/components/ScreenShareBufferingFrame.module.css b/fluxer_app/src/features/voice/components/ScreenShareBufferingFrame.module.css
index 9b98f71ca..4da6ee80e 100644
--- a/fluxer_app/src/features/voice/components/ScreenShareBufferingFrame.module.css
+++ b/fluxer_app/src/features/voice/components/ScreenShareBufferingFrame.module.css
@@ -16,7 +16,8 @@
.corner {
--dot-size: 0.25rem;
--orbit: 0.5rem;
- inset: auto 0.75rem 0.75rem auto;
+ inset-block: auto 0.75rem;
+ inset-inline: auto 0.75rem;
width: 2.5rem;
height: 2.5rem;
background: rgb(0 0 0 / 45%);
@@ -26,7 +27,7 @@
.spinner {
position: absolute;
top: 49.959346cqh;
- left: 49.97424cqw;
+ inset-inline-start: 49.97424cqw;
z-index: 1;
width: 0;
height: 0;
@@ -81,7 +82,7 @@
.dot {
position: absolute;
top: calc(var(--dot-size) / -2);
- left: calc(var(--dot-size) / -2);
+ inset-inline-start: calc(var(--dot-size) / -2);
width: var(--dot-size);
height: var(--dot-size);
border-radius: 50%;
diff --git a/fluxer_app/src/features/voice/components/VoiceConnectionStatus.module.css b/fluxer_app/src/features/voice/components/VoiceConnectionStatus.module.css
index 654bf5801..bae7c4d6c 100644
--- a/fluxer_app/src/features/voice/components/VoiceConnectionStatus.module.css
+++ b/fluxer_app/src/features/voice/components/VoiceConnectionStatus.module.css
@@ -44,7 +44,7 @@
border: none;
background: transparent;
padding: 0;
- text-align: left;
+ text-align: start;
font-weight: 600;
font-size: 0.875rem;
line-height: 1.125rem;
@@ -385,7 +385,7 @@
background: transparent;
color: var(--text-tertiary);
cursor: pointer;
- text-align: left;
+ text-align: start;
}
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
@@ -452,9 +452,9 @@
font-weight: 600;
font-size: 0.75rem;
color: var(--text-primary);
- margin-left: auto;
+ margin-inline-start: auto;
flex: 1 1 auto;
- text-align: right;
+ text-align: end;
}
.popoutStatTextValue {
@@ -505,7 +505,7 @@
color: var(--status-online);
min-width: 0;
max-width: 100%;
- text-align: right;
+ text-align: end;
}
.chartContainer {
diff --git a/fluxer_app/src/features/voice/components/VoiceControlBar.module.css b/fluxer_app/src/features/voice/components/VoiceControlBar.module.css
index 206660094..28ef880eb 100644
--- a/fluxer_app/src/features/voice/components/VoiceControlBar.module.css
+++ b/fluxer_app/src/features/voice/components/VoiceControlBar.module.css
@@ -226,7 +226,7 @@
.settingsButton {
position: absolute;
top: -0.125rem;
- right: -0.125rem;
+ inset-inline-end: -0.125rem;
display: flex;
align-items: center;
justify-content: center;
@@ -359,7 +359,7 @@
.settingsButton {
top: -0.125rem;
- right: -0.125rem;
+ inset-inline-end: -0.125rem;
width: 0.9375rem;
height: 0.9375rem;
}
diff --git a/fluxer_app/src/features/voice/components/VoiceParticipantAvatarList.module.css b/fluxer_app/src/features/voice/components/VoiceParticipantAvatarList.module.css
index cb332a95d..8d48f9658 100644
--- a/fluxer_app/src/features/voice/components/VoiceParticipantAvatarList.module.css
+++ b/fluxer_app/src/features/voice/components/VoiceParticipantAvatarList.module.css
@@ -109,7 +109,7 @@
background: transparent;
border: none;
width: 100%;
- text-align: left;
+ text-align: start;
transition: background-color 100ms ease;
}
diff --git a/fluxer_app/src/features/voice/components/VoiceParticipantTile.module.css b/fluxer_app/src/features/voice/components/VoiceParticipantTile.module.css
index b8325b58e..92eed87eb 100644
--- a/fluxer_app/src/features/voice/components/VoiceParticipantTile.module.css
+++ b/fluxer_app/src/features/voice/components/VoiceParticipantTile.module.css
@@ -58,7 +58,7 @@
.streamInfoHud {
position: absolute;
top: 0.375rem;
- right: 0.375rem;
+ inset-inline-end: 0.375rem;
z-index: 11;
pointer-events: none;
}
@@ -135,7 +135,7 @@
.focusOverlayIcon {
position: absolute;
top: 0.5rem;
- right: 0.5rem;
+ inset-inline-end: 0.5rem;
height: 1.5rem;
width: 1.5rem;
color: var(--voice-text-strong);
@@ -219,7 +219,7 @@
.previewPopover {
position: absolute;
top: 0;
- right: -10rem;
+ inset-inline-end: -10rem;
width: 9.5rem;
height: 6rem;
background: var(--voice-surface-3);
@@ -314,7 +314,7 @@
.focusedPlaceholderLiveBadge {
position: absolute;
top: 0.375rem;
- right: 0.375rem;
+ inset-inline-end: 0.375rem;
z-index: 4;
pointer-events: none;
}
diff --git a/fluxer_app/src/features/voice/components/bottomsheets/VoiceLobbyShared.module.css b/fluxer_app/src/features/voice/components/bottomsheets/VoiceLobbyShared.module.css
index 7a553913b..f657329e7 100644
--- a/fluxer_app/src/features/voice/components/bottomsheets/VoiceLobbyShared.module.css
+++ b/fluxer_app/src/features/voice/components/bottomsheets/VoiceLobbyShared.module.css
@@ -127,7 +127,7 @@
.statValue {
min-width: 0;
- text-align: right;
+ text-align: end;
font-size: 0.75rem;
}
diff --git a/fluxer_app/src/features/voice/components/media_player/AudioPlayer.module.css b/fluxer_app/src/features/voice/components/media_player/AudioPlayer.module.css
index b344c1c7f..b737f9c52 100644
--- a/fluxer_app/src/features/voice/components/media_player/AudioPlayer.module.css
+++ b/fluxer_app/src/features/voice/components/media_player/AudioPlayer.module.css
@@ -44,7 +44,7 @@
font-variant-numeric: tabular-nums;
white-space: nowrap;
min-width: 5.5rem;
- text-align: right;
+ text-align: end;
}
.controls {
@@ -143,12 +143,3 @@
width: 2.75rem;
height: 2.75rem;
}
-
-@keyframes spin {
- from {
- transform: rotate(0deg);
- }
- to {
- transform: rotate(360deg);
- }
-}
diff --git a/fluxer_app/src/features/voice/components/media_player/VideoPlayer.module.css b/fluxer_app/src/features/voice/components/media_player/VideoPlayer.module.css
index 4823ad0ec..0b1e2361e 100644
--- a/fluxer_app/src/features/voice/components/media_player/VideoPlayer.module.css
+++ b/fluxer_app/src/features/voice/components/media_player/VideoPlayer.module.css
@@ -35,8 +35,8 @@
.posterOverlay {
position: absolute;
top: 0;
- left: 0;
- right: 0;
+ inset-inline-start: 0;
+ inset-inline-end: 0;
bottom: 0;
display: flex;
align-items: center;
@@ -57,7 +57,7 @@
.posterImage {
position: absolute;
top: 0;
- left: 0;
+ inset-inline-start: 0;
width: 100%;
height: 100%;
object-fit: contain;
@@ -93,8 +93,8 @@
.controlsOverlay {
position: absolute;
bottom: 0;
- left: 0;
- right: 0;
+ inset-inline-start: 0;
+ inset-inline-end: 0;
display: flex;
flex-direction: column;
}
@@ -161,8 +161,8 @@
.fullscreen {
position: fixed;
top: 0;
- left: 0;
- right: 0;
+ inset-inline-start: 0;
+ inset-inline-end: 0;
bottom: 0;
z-index: var(--z-index-modal);
border-radius: 0;
diff --git a/fluxer_app/src/features/voice/components/modals/ScreenSharePickerModal.module.css b/fluxer_app/src/features/voice/components/modals/ScreenSharePickerModal.module.css
index 546dd31f9..54fe6f316 100644
--- a/fluxer_app/src/features/voice/components/modals/ScreenSharePickerModal.module.css
+++ b/fluxer_app/src/features/voice/components/modals/ScreenSharePickerModal.module.css
@@ -104,7 +104,7 @@
border-radius: 0;
background: transparent;
color: var(--text-primary);
- text-align: left;
+ text-align: start;
cursor: pointer;
}
@@ -339,7 +339,7 @@
background:
linear-gradient(135deg, rgb(255 255 255 / 0.04), transparent 55%),
color-mix(in srgb, var(--background-tertiary) 76%, transparent);
- text-align: left;
+ text-align: start;
}
.downloadCopy {
diff --git a/fluxer_app/src/features/webhook/components/WebhookListItem.module.css b/fluxer_app/src/features/webhook/components/WebhookListItem.module.css
index c7c9e0daf..16464cafc 100644
--- a/fluxer_app/src/features/webhook/components/WebhookListItem.module.css
+++ b/fluxer_app/src/features/webhook/components/WebhookListItem.module.css
@@ -16,7 +16,7 @@
padding: 0 var(--input-container-padding);
background: transparent;
border: none;
- text-align: left;
+ text-align: start;
cursor: pointer;
transition: background-color var(--transition-fast);
}