From 87e1b3ae00203dbbc9ff7ff3b1b2f7e118b496db Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 25 Nov 2025 14:13:19 +0200 Subject: [PATCH] clean up external media popup --- src/components/dialogs/EmbedConsent.tsx | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/src/components/dialogs/EmbedConsent.tsx b/src/components/dialogs/EmbedConsent.tsx index a9d96be533..7ffba6f3a7 100644 --- a/src/components/dialogs/EmbedConsent.tsx +++ b/src/components/dialogs/EmbedConsent.tsx @@ -9,7 +9,8 @@ import { externalEmbedLabels, } from '#/lib/strings/embed-player' import {useSetExternalEmbedPref} from '#/state/preferences' -import {atoms as a, useBreakpoints, useTheme} from '#/alf' +import {atoms as a, web} from '#/alf' +import {Admonition} from '#/components/Admonition' import {Button, ButtonText} from '#/components/Button' import * as Dialog from '#/components/Dialog' import {Text} from '#/components/Typography' @@ -24,9 +25,7 @@ export function EmbedConsentDialog({ onAccept: () => void }) { const {_} = useLingui() - const t = useTheme() const setExternalEmbedPref = useSetExternalEmbedPref() - const {gtMobile} = useBreakpoints() const onShowAllPress = useCallback(() => { for (const key of embedPlayerSources) { @@ -52,50 +51,46 @@ export function EmbedConsentDialog({ + style={web({maxWidth: 400})}> - + External Media - + This content is hosted by {externalEmbedLabels[source]}. Do you want to enable external media? - + External media may allow websites to collect information about you and your device. No information is sent or requested until you press the "play" button. - +