Skip to content

fix(ui): move blocked images notice out of the message body - #13463

Open
CreatorOfBiontium wants to merge 2 commits into
nextcloud:mainfrom
CreatorOfBiontium:fix/blocked-images-warning-section
Open

fix(ui): move blocked images notice out of the message body#13463
CreatorOfBiontium wants to merge 2 commits into
nextcloud:mainfrom
CreatorOfBiontium:fix/blocked-images-warning-section

Conversation

@CreatorOfBiontium

Copy link
Copy Markdown
Contributor

Fixes #12075

Fixed the barely readable "The images have been blocked to protect your privacy." section.
The notice was inside the message's white body, where --color-text-maxcontrast was barely readable. Now we render it as its own section above the body, like the phishing warning, so it reads on the app background.

Before After
image image

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

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 <tobias.vastak@gmail.com>
@ChristophWurst

Copy link
Copy Markdown
Member

Thanks for the contribution

@kesselb

kesselb commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Thanks a lot!

Can you take a look at the conflicts?

@kesselb

kesselb commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

@GVodyanov do you think we should port that style to the translate hint?

@CreatorOfBiontium

Copy link
Copy Markdown
Contributor Author

Can you take a look at the conflicts?

Ofc :) but I'm not home now, I'll do it on saturday

The notice moved into its own component while main renamed the Actions
components, added the iframe sandbox and swapped the translation check
for browser-side language detection. Keep the extracted warning and take
main's version of everything it sits next to.

Assisted-by: ClaudeCode:claude-opus-5
Signed-off-by: Tobiáš Vašťák <tobias.vastak@gmail.com>
@CreatorOfBiontium

Copy link
Copy Markdown
Contributor Author

@kesselb conflicts solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ Enhance "The images have been blocked to protect your privacy."

4 participants