diff options
| author | Fuwn <[email protected]> | 2024-01-16 04:08:11 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-16 04:08:11 -0800 |
| commit | d5f770a6349fe9a6de2dcd68167a8ebe0b0af8e6 (patch) | |
| tree | a77a7effee6f3e0cf5e34e785ebb6c191daf8ed1 /src/lib/Tools | |
| parent | feat(settings): customise anime cover width (diff) | |
| download | due.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.svelte | 2 |
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; }; |