0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 02:19:55 +08:00
discourse/app
chapoi a76d4bb135
FEATURE: Add a small text option to the composer text sizes toolbar button (#42020)
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>
2026-08-03 11:28:59 +02:00
..
assets FEATURE: Add a small text option to the composer text sizes toolbar button (#42020) 2026-08-03 11:28:59 +02:00
controllers SECURITY: Limit Category search term and word count (#41588) 2026-07-31 19:14:35 -05:00
helpers FEATURE: Allow selection of multiple content languages when viewing topics and posts (#42128) 2026-07-30 12:19:44 +08:00
jobs FIX: Clear disabled/deleted ProblemChecks automatically (#42243) 2026-07-31 21:18:28 +01:00
mailers FEATURE: Log in with a one-time email code (#40804) 2026-06-17 12:34:48 -07:00
models DEV: Switch letter avatar generation, topic OG image generation and dominant color detection to use libvips (#42150) 2026-08-03 14:16:58 +08:00
queries/reports DEV: Remove reporting_improvements upcoming change (#41259) 2026-07-01 07:52:02 +08:00
serializers FIX: Gate notification acting_user_name on enable_names setting (#42234) 2026-07-31 14:25:31 -05:00
services FIX: Restrict upcoming-changes toggle to registered upcoming-change settings (#42175) 2026-07-30 09:28:04 -05:00
views FIX: Prevent browsers from restoring stale documents in bfcache mode (#42207) 2026-07-31 17:24:47 +02:00