fix: deduplicate toolbar and fix overflow detection

Extract shared renderToolbarItems() function to eliminate ~850 lines of
duplicated toolbar code between 'top' and 'below-subject' positions.

Add overflow support to Reply, Reply All, and Forward buttons with
data-overflow-item attributes and corresponding More menu entries.

Fix overflow detection algorithm: temporarily disable flex-shrink on
child groups during measurement so scrollWidth reflects natural widths
instead of flex-compressed values. Add overflow-hidden to toolbar
container to prevent visual overflow during recalculation.
This commit is contained in:
Linus Rath
2026-03-18 15:29:16 +01:00
parent ff97d8bc4c
commit a886edda6f
File diff suppressed because it is too large Load Diff