aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Tools
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-01-16 04:08:11 -0800
committerFuwn <[email protected]>2024-01-16 04:08:11 -0800
commitd5f770a6349fe9a6de2dcd68167a8ebe0b0af8e6 (patch)
treea77a7effee6f3e0cf5e34e785ebb6c191daf8ed1 /src/lib/Tools
parentfeat(settings): customise anime cover width (diff)
downloaddue.moe-d5f770a6349fe9a6de2dcd68167a8ebe0b0af8e6.tar.xz
due.moe-d5f770a6349fe9a6de2dcd68167a8ebe0b0af8e6.zip
fix(wrapped): subtract scroll bar width
Diffstat (limited to 'src/lib/Tools')
-rw-r--r--src/lib/Tools/Wrapped.svelte2
1 files changed, 2 insertions, 0 deletions
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;
};