mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-23 16:56:50 +08:00
The `@matchTriggerWidth` and `@matchTriggerMinWidth` options have been
added on `<DMenu />` to give more control on the size of the content.
They will allow to respectively set the width and minWidth of the
content. This is useful if you want your trigger to have the same width
than your content for example.
It defaults to false.
Usage:
```gjs
<DMenu @label="a long label" @matchTriggerWidth={{true}}>content</DMenu>
<DMenu @label="a long label" @matchTriggerMinWidth={{true}}>content</DMenu>
```
Also changes `FilterNavigationMenu` to use this.
---------
Co-authored-by: Martin Brennan <martin@discourse.org>
|
||
|---|---|---|
| .. | ||
| constants.js | ||
| d-menu-instance.js | ||
| d-toast-instance.js | ||
| d-tooltip-instance.js | ||
| float-kit-instance.js | ||
| get-scroll-parent.js | ||
| update-position.js | ||