From d5f770a6349fe9a6de2dcd68167a8ebe0b0af8e6 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 16 Jan 2024 04:08:11 -0800 Subject: fix(wrapped): subtract scroll bar width --- src/lib/Tools/Wrapped.svelte | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib') diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte index 04c3f3b5..488535cd 100644 --- a/src/lib/Tools/Wrapped.svelte +++ b/src/lib/Tools/Wrapped.svelte @@ -223,6 +223,8 @@ if (!disableActivityHistory && bottomWidths > requiredWidth) requiredWidth = bottomWidths; + requiredWidth += wrappedContainer.offsetWidth - wrappedContainer.clientWidth; + wrappedContainer.style.width = `${requiredWidth}px`; width = requiredWidth; }; -- cgit v1.2.3