From a7f170768069e66e236e4ed9b2ea4d3300adb920 Mon Sep 17 00:00:00 2001 From: Paola De Bartolo Date: Thu, 26 Mar 2026 20:36:46 -0300 Subject: [PATCH] fix: correct overflow badge vertical alignment Set line-height: 0 on vaadin-context-menu to eliminate the extra inline spacing that caused the overflow badge to appear misaligned relative to other badges in the list. Close #38 --- .../META-INF/resources/frontend/src/fc-badge-list.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/resources/META-INF/resources/frontend/src/fc-badge-list.ts b/src/main/resources/META-INF/resources/frontend/src/fc-badge-list.ts index 76f8fc4..424cefa 100644 --- a/src/main/resources/META-INF/resources/frontend/src/fc-badge-list.ts +++ b/src/main/resources/META-INF/resources/frontend/src/fc-badge-list.ts @@ -60,6 +60,10 @@ export class BadgeList extends ResizeMixin(ThemableMixin(LitElement)) { --badge-list-label-font-size: var(--lumo-font-size-s); --badge-list-label-margin-left: calc(var(--lumo-border-radius-m) / 4); } + + vaadin-context-menu { + line-height: 0; + } [part="container"] ::slotted(span[theme~="badge"]) { margin: var(--badge-list-badges-margin);