Commit dba4c72
Fix dropdown trigger forcing full width and wrapping in toolbars
The DropDownMenu trigger wrapper was changed to width: 100% in #4581
(CollapsibleOnMobile work) so a header dropdown could fill a sidebar
drawer on mobile. That blanket change made every dropdown trigger
stretch to fill its container, so the ellipsis ("more actions") button
in the Tendril draft/review action footers expanded to full width and
wrapped onto its own line inside the horizontal wrap layout.
Use maxWidth: 100% instead of width: 100% so the trigger sizes to its
content by default (no more spurious wrapping) while still being
constrained to its container. Consumers that want a full-width trigger
can still set the width on the trigger button itself. minWidth: 0 is
kept for flex-shrink safety.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent ead8f08 commit dba4c72
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
0 commit comments