Skip to content

fix(editor): keep the document's styles out of reference widgets - #9756

Open
jospoortvliet wants to merge 3 commits into
mainfrom
fix/noid/widget-list-styles
Open

jospoortvliet wants to merge 3 commits into
mainfrom
fix/noid/widget-list-styles

Conversation

@jospoortvliet

@jospoortvliet jospoortvliet commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

📝 Summary

  • Resolves: #

The editor's list and link rules are scoped to div.ProseMirror, which includes the node views apps render reference widgets into. A widget renders content that belongs to another app and brings its own styles, so the document's list-style-type, padding-inline-start, link colour and underline leaked into it.

A Talk conversation embedded in a document showed a bullet in front of every chat message, and an underlined blue conversation name, participant name and message link. This resets the list and link properties inside .widgets--list so the widget's own styles apply.

It is not Talk-specific: any widget that renders a list or a link — Deck, Tables, Collectives — hits the same thing.

🖼️ Screenshots

🏚️ Before 🏡 After
text-lists-before text-lists-after
bulleted chat messages clean chat messages
text-links-before text-links-after
blue underlined conversation name and description plain text

🚧 TODO

  • —

🏁 Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Tests passing and the changes are covered with tests
  • Documentation has been updated or is not required

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI tools
  • The AI-generated content was reviewed, comprehended and tested by a human

🤖 Generated with Claude Code

jospoortvliet and others added 2 commits December 1, 2026 16:46
A widget renders content that belongs to another app and brings its own
styles, but the editor's list rules reached into it: every list item a
widget rendered got a bullet and an indent from the document around it.
A Talk conversation embedded in a document showed a bullet in front of
every chat message.

Assisted-by: ClaudeCode:claude-opus-5
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: Jos Poortvliet <551757+jospoortvliet@users.noreply.github.com>
A widget is not document text, but the link rule of the editor reaches
into it all the same, so every link a widget renders - a conversation
name, a participant, a board - comes out blue and underlined.

Assisted-by: ClaudeCode:claude-opus-5
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: Jos Poortvliet <551757+jospoortvliet@users.noreply.github.com>
@nextcloud-command nextcloud-command added the AI assisted This PR contains AI-assisted commits label Dec 1, 2026
@jospoortvliet
jospoortvliet marked this pull request as ready for review December 1, 2026 15:48
@codecov

codecov Bot commented Dec 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

This branch has not been deployed

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

Labels

AI assisted This PR contains AI-assisted commits

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants