Update AbstractDropdownMenuButton.ts

Adopt button size to content. This allows better display for european languages.
This commit is contained in:
Tobias Krais 2024-09-18 21:38:23 +02:00 committed by GitHub
parent 0ce1b2f718
commit 650a36e0c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -7,10 +7,10 @@ export abstract class AbstractDropdownMenuButton<T> extends AbstractMenuButton {
tippyEl?: HTMLDivElement;
textEl?: HTMLDivElement;
menuData: T[] = [];
menuTextWidth: string = "40px";
menuTextWidth: string = "fit-content";
defaultMenuIndex: number = 0;
refreshMenuText: boolean = true;
width: string = "48px";
width: string = "fit-content";
dropDivWith: string = "100px";
dropDivHeight: string = "fit-content";
showItemsTip: boolean = false;