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 175845b..ac88f8d 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 @@ -203,7 +203,7 @@ export class BadgeList extends ResizeMixin(ThemableMixin(ThemeDetectionMixin(Lit // Reset overflow badge for overflow calculations and get width overflow.removeAttribute("hidden"); let overflowStyle = getComputedStyle(overflow); - let overflowWidth = overflow.offsetWidth + parseInt(overflowStyle.marginInline); + let overflowWidth = overflow.offsetWidth + parseInt(overflowStyle.marginInlineStart) + parseInt(overflowStyle.marginInlineEnd); // Reset badges for calculations badges.forEach(badge => {