discourse/app/assets/javascripts/float-kit/addon/lib
Joffrey JAFFEUX 16be391fe3
DEV: adds matchTriggerWidth/matchTriggerMinWidth d-menu (#34128)
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>
2025-08-08 12:15:34 +10:00
..
constants.js DEV: adds matchTriggerWidth/matchTriggerMinWidth d-menu (#34128) 2025-08-08 12:15:34 +10:00
d-menu-instance.js FEATURE: rich editor link ui for editing it (#32583) 2025-06-11 08:51:27 -03:00
d-toast-instance.js DEV: Clean up imports (#28060) 2024-07-25 15:09:06 +02:00
d-tooltip-instance.js DEV: Do not trigger floatkit 'hover' for touch events (#30793) 2025-01-16 12:36:47 +00:00
float-kit-instance.js DEV: Update lint-configs and autofix issues (#31620) 2025-03-05 01:20:16 +01:00
get-scroll-parent.js DEV: FloatKit (#23650) 2023-09-26 13:39:52 +02:00
update-position.js DEV: adds matchTriggerWidth/matchTriggerMinWidth d-menu (#34128) 2025-08-08 12:15:34 +10:00