From 6ef0f1fbe11dfcd818cee194d0b78b018b2203e3 Mon Sep 17 00:00:00 2001 From: Hampus Date: Sat, 15 Aug 2026 13:16:44 +0200 Subject: [PATCH] fix(app): rename class names that content blockers treat as ads (#1621) --- .../shared/MobileSettingsComponents.module.css | 2 +- .../dialogs/shared/MobileSettingsComponents.tsx | 2 +- .../layout/FavoritesChannelListContent.module.css | 6 +++--- .../layout/FavoritesChannelListContent.tsx | 4 ++-- .../app/components/layout/GuildsLayout.module.css | 12 ++++++------ .../layout/sidebar_nav/AddGuildButton.tsx | 4 ++-- .../layout/sidebar_nav/DiscoveryButton.tsx | 4 ++-- .../layout/sidebar_nav/DownloadButton.tsx | 4 ++-- .../components/layout/sidebar_nav/HelpButton.tsx | 4 ++-- .../setup/SelfHostedSetupWizardGate.module.css | 4 ++-- .../app/components/setup/SetupWizardSteps.tsx | 2 +- .../channel/components/MessageReactions.module.css | 6 +++--- .../channel/components/MessageReactions.tsx | 4 ++-- .../direct_message/AddFriendView.module.css | 4 ++-- .../components/direct_message/AddFriendView.tsx | 5 ++++- .../guild/components/RoleManagement.module.css | 8 ++++---- .../features/guild/components/RoleManagement.tsx | 2 +- .../components/modals/InviteModal.module.css | 2 +- .../invite/components/modals/InviteModal.tsx | 2 +- .../ApplicationDetail.module.css | 2 +- .../application_detail/ApplicationInfoSection.tsx | 2 +- .../chat_settings_tab/SearchEnginesTab.module.css | 2 +- .../tabs/chat_settings_tab/SearchEnginesTab.tsx | 2 +- .../components/VoiceConnectionStatus.module.css | 14 +++++++------- .../voice_connection_status/VoiceDetailsPopout.tsx | 12 ++++++------ 25 files changed, 59 insertions(+), 56 deletions(-) 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 c6eee570f..95d32e2a2 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 @@ -230,7 +230,7 @@ background-color: var(--settings-border-color, var(--background-modifier-accent)); } -.additionalContent { +.extraContent { margin-top: 2rem; } 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 ff891173f..54d5cb386 100644 --- a/fluxer_app/src/features/app/components/dialogs/shared/MobileSettingsComponents.tsx +++ b/fluxer_app/src/features/app/components/dialogs/shared/MobileSettingsComponents.tsx @@ -366,7 +366,7 @@ export const MobileSettingsList = observer(function MobileSettingsList {additionalContent} diff --git a/fluxer_app/src/features/app/components/layout/FavoritesChannelListContent.module.css b/fluxer_app/src/features/app/components/layout/FavoritesChannelListContent.module.css index 656063174..a69ca2f33 100644 --- a/fluxer_app/src/features/app/components/layout/FavoritesChannelListContent.module.css +++ b/fluxer_app/src/features/app/components/layout/FavoritesChannelListContent.module.css @@ -198,7 +198,7 @@ display: none; } -.addButton { +.categoryAddButton { display: flex; height: 1rem; width: 1rem; @@ -216,11 +216,11 @@ } :global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard)) - .addButton:hover { + .categoryAddButton:hover { color: var(--text-primary); } -.addButtonIcon { +.categoryAddButtonIcon { height: 1rem; width: 1rem; } diff --git a/fluxer_app/src/features/app/components/layout/FavoritesChannelListContent.tsx b/fluxer_app/src/features/app/components/layout/FavoritesChannelListContent.tsx index cf0f0b192..9dff04dcd 100644 --- a/fluxer_app/src/features/app/components/layout/FavoritesChannelListContent.tsx +++ b/fluxer_app/src/features/app/components/layout/FavoritesChannelListContent.tsx @@ -581,7 +581,7 @@ const FavoriteCategoryItem = observer( > diff --git a/fluxer_app/src/features/app/components/layout/GuildsLayout.module.css b/fluxer_app/src/features/app/components/layout/GuildsLayout.module.css index 7b41cd42f..fdce253b0 100644 --- a/fluxer_app/src/features/app/components/layout/GuildsLayout.module.css +++ b/fluxer_app/src/features/app/components/layout/GuildsLayout.module.css @@ -455,11 +455,11 @@ } } -.addGuildButton { +.createGuildButton { composes: guildListItem; } -.addGuildButtonIcon { +.createGuildButtonIcon { display: flex; align-items: center; justify-content: center; @@ -478,11 +478,11 @@ @media (hover: hover) and (pointer: fine) { :global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard)) - .addGuildButton:hover - .addGuildButtonIcon, + .createGuildButton:hover + .createGuildButtonIcon, :global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard)) - .addGuildButtonIcon:hover, - .addGuildButton.contextMenuHover .addGuildButtonIcon { + .createGuildButtonIcon:hover, + .createGuildButton.contextMenuHover .createGuildButtonIcon { border-color: var(--text-primary); } } diff --git a/fluxer_app/src/features/app/components/layout/sidebar_nav/AddGuildButton.tsx b/fluxer_app/src/features/app/components/layout/sidebar_nav/AddGuildButton.tsx index 670291e96..b373b7b23 100644 --- a/fluxer_app/src/features/app/components/layout/sidebar_nav/AddGuildButton.tsx +++ b/fluxer_app/src/features/app/components/layout/sidebar_nav/AddGuildButton.tsx @@ -97,7 +97,7 @@ export const AddGuildButton = observer(() => { } return (
{ > { return null; } return ( -
+
{ > { const shouldShowHoverState = isHovering || contextMenuOpen; return (
{ > { const shouldShowHoverState = isHovering || contextMenuOpen; return (
{ > form { +.accountSetupForm > form { margin-top: 0; gap: 0.875rem; } diff --git a/fluxer_app/src/features/app/components/setup/SetupWizardSteps.tsx b/fluxer_app/src/features/app/components/setup/SetupWizardSteps.tsx index f44e0529f..a3f60af8e 100644 --- a/fluxer_app/src/features/app/components/setup/SetupWizardSteps.tsx +++ b/fluxer_app/src/features/app/components/setup/SetupWizardSteps.tsx @@ -559,7 +559,7 @@ export const AdminAccountStep = observer(({theme}: {theme: ThemeType}) => { const {i18n} = useLingui(); return (
-
+
{ const {i18n} = useLingui(); const showVerificationSlateOnly = Users.currentUser?.verified === false; return ( -
+
{showVerificationSlateOnly ? ( diff --git a/fluxer_app/src/features/guild/components/RoleManagement.module.css b/fluxer_app/src/features/guild/components/RoleManagement.module.css index fc8d59108..95670e998 100644 --- a/fluxer_app/src/features/guild/components/RoleManagement.module.css +++ b/fluxer_app/src/features/guild/components/RoleManagement.module.css @@ -68,12 +68,12 @@ gap: 0.25rem; } -.addRoleButton { +.assignRoleButton { cursor: pointer; transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1); } -.addRoleButtonIcon { +.assignRoleButtonIcon { display: flex; height: 1rem; width: 1rem; @@ -83,8 +83,8 @@ cursor: pointer; } -.addRoleButtonIcon:hover, -.addRoleButtonIcon[data-context-menu-open='true'] { +.assignRoleButtonIcon:hover, +.assignRoleButtonIcon[data-context-menu-open='true'] { color: var(--text-primary); } diff --git a/fluxer_app/src/features/guild/components/RoleManagement.tsx b/fluxer_app/src/features/guild/components/RoleManagement.tsx index f19240b06..a9bf8d12f 100644 --- a/fluxer_app/src/features/guild/components/RoleManagement.tsx +++ b/fluxer_app/src/features/guild/components/RoleManagement.tsx @@ -449,7 +449,7 @@ export const AddRoleButton: React.FC<{