diff --git a/frontend/app/.ic-assets.json5 b/frontend/app/.ic-assets.json5 index e942baac45..293871f8d8 100644 --- a/frontend/app/.ic-assets.json5 +++ b/frontend/app/.ic-assets.json5 @@ -8,7 +8,7 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "X-XSS-Protection": "1; mode=block", - "Content-Security-Policy": "frame-ancestors https://ht7v7-iaaaa-aaaak-qakga-cai.icp0.io https://mdocx-gyaaa-aaaak-qcbsq-cai.icp0.io https://calm-pasca-49d7be.netlify.app http://localhost:5173 https://zexzi-jyaaa-aaaam-abj3q-cai.icp0.io https://xw4dq-4yaaa-aaaam-abeuq-cai.ic0.app;", + "Content-Security-Policy": "frame-ancestors https://spyzr-gqaaa-aaaan-qd66q-cai.icp0.io https://221bravo.app https://ht7v7-iaaaa-aaaak-qakga-cai.icp0.io https://mdocx-gyaaa-aaaak-qcbsq-cai.icp0.io https://calm-pasca-49d7be.netlify.app http://localhost:5173 https://zexzi-jyaaa-aaaam-abj3q-cai.icp0.io https://xw4dq-4yaaa-aaaam-abeuq-cai.ic0.app;", }, allow_raw_access: false, }, diff --git a/frontend/app/src/components/home/CurrentChat.svelte b/frontend/app/src/components/home/CurrentChat.svelte index 5e37953598..9c9eb5147d 100644 --- a/frontend/app/src/components/home/CurrentChat.svelte +++ b/frontend/app/src/components/home/CurrentChat.svelte @@ -34,6 +34,7 @@ import { framed } from "../../stores/xframe"; import { rightPanelHistory } from "../../stores/rightPanel"; import AcceptRulesModal from "./AcceptRulesModal.svelte"; + import { mobileWidth } from "../../stores/screenDimensions"; type ConfirmedActionEvent = | ConfirmedSendMessage @@ -82,6 +83,7 @@ let showAcceptRulesModal = false; let sendMessageContext: ConfirmedActionEvent | undefined = undefined; + $: showChatHeader = !$mobileWidth || !$framed; $: messageContext = { chatId: chat.id }; $: currentChatTextContent = client.currentChatTextContent; $: currentChatReplyingTo = client.currentChatReplyingTo; @@ -387,7 +389,7 @@ bind:searchTerm on:goToMessageIndex on:close={() => (showSearchHeader = false)} /> - {:else if !$framed} + {:else if showChatHeader}