equinor / webviz-subsurface-components

Custom subsurface visualizations for use in Webviz and/or Dash.
https://github.com/orgs/equinor/projects/24
Mozilla Public License 2.0
39 stars 40 forks source link

[NGRM] - wrong layout for spacers #2241

Closed mirisb closed 2 months ago

mirisb commented 2 months ago

Spacer size is supplied however it seems that layouting makes it ignored image In this storybook example, the first spacer has a size of 312 pixels (which is much to big), however in practice, only the containing div has this width and the actual pick has a width of 79 pixels. Spacer layout needs to be improved such as user supplied width will be properly taken into account,

mirisb commented 2 months ago

@Vladimir-Kokin please advise: Currently the spacer size is set on the parent div and not on the welllogspacer element. Setting the width to the welllogspacer element as well seems to solve the issue: image Is this the correct approach to fix this issue?