Merge pull request #318 from reuters-graphics/scrollerbase-width-fix

Reactive `width` for ScrollerBase
This commit is contained in:
MinamiFunakoshiTR 2025-05-29 14:13:15 -05:00 committed by GitHub
commit 0347f87a67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -133,7 +133,7 @@
let wh = $state(0);
let fixed = $state(false);
let offset_top = 0;
let width = 1;
let width = $state(1);
let top_px = $derived(Math.round(top * wh));
let bottom_px = $derived(Math.round(bottom * wh));

View file

@ -63,8 +63,9 @@
@use '../../../scss/mixins' as mixins;
.scroller-demo-container {
width: mixins.$column-width-normal;
max-width: mixins.$column-width-normal;
margin: auto;
background: #c5dfe8;
}
.step-foreground-container {