mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 02:19:55 +08:00
Previously, the composer's "Headings" toolbar button only offered heading levels and a paragraph reset, with no built-in way to insert smaller text. This change renames the button to "Text sizes" and adds a "Small" option that wraps the selection in `<small>` tags. It toggles on/off and highlights the active state in both the plain textarea and rich (ProseMirror) editors, reusing the existing `<small>` inline HTML support. <img width="582" height="582" alt="CleanShot 2026-07-24 at 14 15 57@2x" src="https://github.com/user-attachments/assets/9e76c1d3-bea9-4f3c-a159-7e27ac725217" /> It re-uses the same icon as `paragraph` does, for lack of a better option. The differentiating element is that paragraph doesn't have an active highlight and small does: <img width="1552" height="504" alt="CleanShot 2026-07-24 at 14 16 49@2x" src="https://github.com/user-attachments/assets/981fc522-5c64-42d8-acba-f7dc2ee6d808" /> --------- Co-authored-by: Renato Atilio <renato@discourse.org> |
||
|---|---|---|
| .. | ||
| assets | ||
| controllers | ||
| helpers | ||
| jobs | ||
| mailers | ||
| models | ||
| queries/reports | ||
| serializers | ||
| services | ||
| views | ||