plate icon indicating copy to clipboard operation
plate copied to clipboard

block-discussion Cannot display properly when the width is less than 935px

Open weiquabit opened this issue 1 month ago • 4 comments

Description

Add a suggestion in the editor the 'floating-discussion' component displays normally when above 1000px. But when the width is 935px, 'block-discussion' does not display correctly and you need to edit the text for it to appear properly.

Image Image

Reproduction URL

No response

Reproduction steps

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

Plate version

51.0.0

Slate React version

19.2.0

Screenshots


Logs


Browsers

No response

weiquabit avatar Oct 27 '25 08:10 weiquabit

There’s currently no official documentation or built-in workaround for the 'block-discussion' component not displaying correctly below 935px. The docs don’t mention any responsive breakpoints or known issues for 'block-discussion' or 'floating-discussion' components, and there aren’t any open tickets tracking this specific problem [docs].

If you want to add a note for users, a clear suggestion would be:

“Block discussions may not display correctly on screens narrower than 935px. If you encounter display issues, try editing the text to force a re-render, or increase your window width.”

You could add this note to your app’s UI near the discussion feature, or in your own documentation for users. If you need a more robust fix, you may want to inspect or override the component’s CSS for better responsive handling.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

dosubot[bot] avatar Oct 27 '25 08:10 dosubot[bot]

On the page https://platejs.org/docs/components/suggestion-toolbar-button, in the Plate Plus example above, when I drag to reduce the width, the "block-discussion" also cannot display properly.

weiquabit avatar Oct 27 '25 08:10 weiquabit

@weiquabit Could you provide a reproduction video?

felixfeng33 avatar Oct 28 '25 13:10 felixfeng33

@weiquabit Could you provide a reproduction video?

https://github.com/user-attachments/assets/62988416-9075-4d41-b54e-f9f58f54d757

weiquabit avatar Oct 29 '25 07:10 weiquabit