Merge pull request #318 from reuters-graphics/scrollerbase-width-fix
Reactive `width` for ScrollerBase
This commit is contained in:
commit
0347f87a67
2 changed files with 3 additions and 2 deletions
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue