Open lacolaco opened 3 years ago
{ viewports: [], viewport: { width: 960, height: 640 } }
can override global viewports
.
I think its because you are not overriding the same key.
In global you set viewports
but locally you set viewport
. I guess viewports
has precedence over viewport
Component-local
viewport
parameter seems being overridden by globalviewports
parameter.Use-case
I want to take screenshots with some common viewports and some stories have its own proper viewport specifically. I expected component-local or story-local parameters can override global one from
preview.ts
, but it didn't work as I imagined.