mirror of
https://github.com/discourse/discourse.git
synced 2025-08-17 18:04:11 +08:00
Reported here: https://meta.discourse.org/t/expand-quote-arrow-new-line-creates-gap-in-quote-style/375067 In cases of long content and narrow viewports, sometimes quote content can break the layout: <img width="244" alt="image" src="https://github.com/user-attachments/assets/3674cabb-e278-4bec-a9cf-48623dfdce6c" /> This improves the situation by adding an additional wrapper to the quote onebox title and category. This allows text to wrap independently from the avatar and controls, and in worst cases the text truncates: <img width="500" alt="image" src="https://github.com/user-attachments/assets/3e29bf52-0b36-4f70-8237-22ee3b9377b2" /> <img width="300" alt="image" src="https://github.com/user-attachments/assets/8fbd83bf-dafd-42cc-a470-a928c252c183" /> Even without a post HTML rebuild for the quotes to get the new wrapper, the new CSS prevents layout breakage through `text-overflow: ellipsis;` alone Old quote without the new wrapper, but with the new CSS: <img width="350" alt="image" src="https://github.com/user-attachments/assets/8922bce0-17a7-4731-a1de-33daad9d7b37" /> |
||
---|---|---|
.. | ||
engine | ||
mixins | ||
templates | ||
domain_checker.rb | ||
engine.rb | ||
file_type_finder.rb | ||
helpers.rb | ||
json_ld.rb | ||
layout.rb | ||
layout_support.rb | ||
matcher.rb | ||
movie.rb | ||
normalizer.rb | ||
oembed.rb | ||
open_graph.rb | ||
preview.rb | ||
sanitize_config.rb | ||
status_check.rb | ||
template_support.rb | ||
view.rb |