From 650a36e0c0a75e0833b876b7b997cc7c97eb358f Mon Sep 17 00:00:00 2001 From: Tobias Krais Date: Wed, 18 Sep 2024 21:38:23 +0200 Subject: [PATCH] Update AbstractDropdownMenuButton.ts Adopt button size to content. This allows better display for european languages. --- src/components/AbstractDropdownMenuButton.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/AbstractDropdownMenuButton.ts b/src/components/AbstractDropdownMenuButton.ts index ded4612..362fe45 100644 --- a/src/components/AbstractDropdownMenuButton.ts +++ b/src/components/AbstractDropdownMenuButton.ts @@ -7,10 +7,10 @@ export abstract class AbstractDropdownMenuButton 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;