fix(app): avoid clipping new session during sidebar anim
This commit is contained in:
@@ -218,14 +218,15 @@ export function Titlebar() {
|
|||||||
<div class="hidden xl:flex items-center shrink-0">
|
<div class="hidden xl:flex items-center shrink-0">
|
||||||
<Show when={params.dir}>
|
<Show when={params.dir}>
|
||||||
<div
|
<div
|
||||||
class="overflow-hidden flex items-center shrink-0 transition-[width,opacity,transform]"
|
class="flex items-center shrink-0 w-8 mr-1"
|
||||||
classList={{
|
|
||||||
"w-8 opacity-100 translate-x-0": !layout.sidebar.opened(),
|
|
||||||
"w-0 opacity-0 -translate-x-1 pointer-events-none": layout.sidebar.opened(),
|
|
||||||
"duration-180 ease-out": !layout.sidebar.opened(),
|
|
||||||
"duration-120 ease-in": layout.sidebar.opened(),
|
|
||||||
}}
|
|
||||||
aria-hidden={layout.sidebar.opened() ? "true" : undefined}
|
aria-hidden={layout.sidebar.opened() ? "true" : undefined}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="transition-opacity"
|
||||||
|
classList={{
|
||||||
|
"opacity-100 duration-120 ease-out": !layout.sidebar.opened(),
|
||||||
|
"opacity-0 duration-120 ease-in delay-0 pointer-events-none": layout.sidebar.opened(),
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<TooltipKeybind
|
<TooltipKeybind
|
||||||
placement="bottom"
|
placement="bottom"
|
||||||
@@ -248,10 +249,16 @@ export function Titlebar() {
|
|||||||
/>
|
/>
|
||||||
</TooltipKeybind>
|
</TooltipKeybind>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</Show>
|
</Show>
|
||||||
<div
|
<div
|
||||||
class="flex items-center gap-0 transition-[margin] duration-180 ease-out"
|
class="flex items-center gap-0 transition-transform"
|
||||||
classList={{ "ml-1": !!params.dir && !layout.sidebar.opened() }}
|
classList={{
|
||||||
|
"translate-x-0": !layout.sidebar.opened(),
|
||||||
|
"-translate-x-[36px]": layout.sidebar.opened(),
|
||||||
|
"duration-180 ease-out": !layout.sidebar.opened(),
|
||||||
|
"duration-180 ease-in": layout.sidebar.opened(),
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<Tooltip placement="bottom" value={language.t("common.goBack")} openDelay={2000}>
|
<Tooltip placement="bottom" value={language.t("common.goBack")} openDelay={2000}>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user