A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(app): hide the desktop app prompt on self-hosted and wrap it
Hampus96a66763605a
diff --git a/fluxer_app/src/features/auth/flow/DesktopDeepLinkPrompt.module.css b/fluxer_app/src/features/auth/flow/DesktopDeepLinkPrompt.module.cssindex c23bc3654..533b42929 100644--- a/fluxer_app/src/features/auth/flow/DesktopDeepLinkPrompt.module.css+++ b/fluxer_app/src/features/auth/flow/DesktopDeepLinkPrompt.module.css@@ -2,6 +2,7 @@.banner {display: flex;+ flex-wrap: wrap;align-items: center;gap: 0.75rem;padding: 0.9rem 1rem;@@ -12,7 +13,9 @@}.copy {- flex: 1 1 0%;+ flex: 999 1 14rem;+ min-width: 0;+ overflow-wrap: anywhere;display: flex;flex-direction: column;gap: 0.15rem;@@ -30,11 +33,14 @@font-size: 0.95rem;}-.cta {- display: inline-flex;- gap: 0.4rem;- align-items: center;- white-space: nowrap;+.banner .cta {+ flex: 1 1 auto;+ height: auto;+}++.ctaLabel {+ white-space: normal;+ overflow-wrap: anywhere;}.notInstalled {diff --git a/fluxer_app/src/features/auth/flow/DesktopDeepLinkPrompt.tsx b/fluxer_app/src/features/auth/flow/DesktopDeepLinkPrompt.tsxindex ec276850f..c5540bbf9 100644--- a/fluxer_app/src/features/auth/flow/DesktopDeepLinkPrompt.tsx+++ b/fluxer_app/src/features/auth/flow/DesktopDeepLinkPrompt.tsx@@ -37,7 +37,7 @@ export const DesktopDeepLinkPrompt: React.FC<DesktopDeepLinkPromptProps> = ({codconst [isLoading, setIsLoading] = useState(false);const [error, setError] = useState<string | null>(null);const isMobileBrowser = Platform.isMobileBrowser;- if (isDesktop() || isMobileBrowser) return null;+ if (isDesktop() || isMobileBrowser || RuntimeConfig.isSelfHosted()) return null;const getPath = (): string => {switch (kind) {case 'invite':@@ -72,7 +72,7 @@ export const DesktopDeepLinkPrompt: React.FC<DesktopDeepLinkPromptProps> = ({cod</p>) : (<p className={styles.body} data-flx="auth.flow.desktop-deep-link-prompt.body">- <Trans>Jump straight to the app to continue.</Trans>+ <Trans>Continue in the desktop app.</Trans></p>)}</div>@@ -88,7 +88,7 @@ export const DesktopDeepLinkPrompt: React.FC<DesktopDeepLinkPromptProps> = ({codweight="fill"data-flx="auth.flow.desktop-deep-link-prompt.arrow-square-out-icon"/>- <span data-flx="auth.flow.desktop-deep-link-prompt.span">+ <span className={styles.ctaLabel} data-flx="auth.flow.desktop-deep-link-prompt.span">{i18n._(OPEN_PRODUCT_DESCRIPTOR, {productName: RuntimeConfig.productName})}</span></Button>