Slight improvement to Customize More noscript behavior
My wife suggested this, thanks Aria!! Identical behavior, but not using the hack of reading the `style` attribute.
This commit is contained in:
parent
2aed7b21db
commit
7f356cdede
1 changed files with 2 additions and 3 deletions
|
@ -66,6 +66,7 @@ body.items-show
|
||||||
overflow: hidden
|
overflow: hidden
|
||||||
transition: width .25s
|
transition: width .25s
|
||||||
white-space: nowrap
|
white-space: nowrap
|
||||||
|
--natural-width: auto
|
||||||
|
|
||||||
measured-content
|
measured-content
|
||||||
padding-right: .5em
|
padding-right: .5em
|
||||||
|
@ -75,9 +76,7 @@ body.items-show
|
||||||
// what it is in px, we can use that for a smooth transition. If not,
|
// what it is in px, we can use that for a smooth transition. If not,
|
||||||
// okay, we just pop out to `auto`, which CSS can't make smooth.
|
// okay, we just pop out to `auto`, which CSS can't make smooth.
|
||||||
.customize-more-label
|
.customize-more-label
|
||||||
width: auto
|
width: var(--natural-width)
|
||||||
&[style*="--natural-width"]
|
|
||||||
width: var(--natural-width)
|
|
||||||
|
|
||||||
outfit-viewer
|
outfit-viewer
|
||||||
display: block
|
display: block
|
||||||
|
|
Loading…
Reference in a new issue