From 6413d3324387c5ac3961ab686c4538a56a820972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=C3=A1=C5=A1=20Va=C5=A1=C5=A5=C3=A1k?= Date: Tue, 11 Aug 2026 17:18:16 +0200 Subject: [PATCH] fix(ui): move blocked images notice out of the message body MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The notice was inside the message's white body, where --color-text-maxcontrast is barely readable. Render it as its own section above the body, like the phishing warning, so it reads on the app background. Extract it into BlockedContentWarning and drop the :deep button overrides it needed, which also leaked onto the translate and read receipt buttons. AI-assisted: Claude Code (Claude Opus 5) Signed-off-by: Tobiáš Vašťák --- src/components/BlockedContentWarning.vue | 90 ++++++++++++++++ src/components/MessageHTMLBody.vue | 102 ++++++------------ .../components/MessageHTMLBody.vue.spec.js | 73 +++++++++++++ 3 files changed, 194 insertions(+), 71 deletions(-) create mode 100644 src/components/BlockedContentWarning.vue diff --git a/src/components/BlockedContentWarning.vue b/src/components/BlockedContentWarning.vue new file mode 100644 index 0000000000..2ab3c6b43b --- /dev/null +++ b/src/components/BlockedContentWarning.vue @@ -0,0 +1,90 @@ + + + + + + + diff --git a/src/components/MessageHTMLBody.vue b/src/components/MessageHTMLBody.vue index d56e786c95..97616a1614 100644 --- a/src/components/MessageHTMLBody.vue +++ b/src/components/MessageHTMLBody.vue @@ -4,46 +4,28 @@ -->