mirror of
https://github.com/discourse/discourse.git
synced 2026-08-05 13:59:03 +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> |
||
|---|---|---|
| .. | ||
| category_templates_spec.rb | ||
| default_to_subcategory_spec.rb | ||
| dont_feed_the_trolls_popup_spec.rb | ||
| drafts_spec.rb | ||
| enqueued_post_draft_spec.rb | ||
| form_template_tag_chooser_spec.rb | ||
| post_validation_spec.rb | ||
| prosemirror_autocomplete_spec.rb | ||
| prosemirror_code_spec.rb | ||
| prosemirror_container_spec.rb | ||
| prosemirror_images_spec.rb | ||
| prosemirror_input_rules_spec.rb | ||
| prosemirror_keymap_spec.rb | ||
| prosemirror_links_spec.rb | ||
| prosemirror_onebox_spec.rb | ||
| prosemirror_onebox_toolbar_spec.rb | ||
| prosemirror_pasting_spec.rb | ||
| prosemirror_quotes_spec.rb | ||
| prosemirror_toolbar_spec.rb | ||
| prosemirror_uploads_spec.rb | ||
| prosemirror_watched_words_spec.rb | ||
| prosemirror_wrap_spec.rb | ||
| redesign_spec.rb | ||
| review_media_unless_trust_level_spec.rb | ||
| template_validation_spec.rb | ||