mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-30 20:28:20 +00:00
Fix ExpandCollapse (#2463)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
parent
65dfe64f52
commit
625dff381d
@ -561,9 +561,11 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
.formatPanel {
|
||||
&:focus-within .formatPanel {
|
||||
position: sticky;
|
||||
top: 1.25rem;
|
||||
}
|
||||
.formatPanel {
|
||||
margin: -0.5rem -0.25rem 0.5rem;
|
||||
padding: 0.375rem;
|
||||
background-color: var(--body-accent);
|
||||
|
@ -31,7 +31,11 @@
|
||||
$: tweenedHeight.set(isExpanded ? height : 0, { duration, easing })
|
||||
</script>
|
||||
|
||||
<div class="root" style="height: {$tweenedHeight}px" style:overflow={isExpanded ? 'visible' : 'hidden'}>
|
||||
<div
|
||||
class="root"
|
||||
style="height: {$tweenedHeight}px;"
|
||||
style:overflow={$tweenedHeight < height ? 'auto' : $tweenedHeight === 0 ? 'hidden' : 'visible'}
|
||||
>
|
||||
<div bind:offsetHeight={height} class="flex-no-shrink clear-mins">
|
||||
<slot />
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user