minor UX nits

This commit is contained in:
Ruben Fiszel
2023-11-15 01:41:34 +01:00
parent d3fd78babc
commit 1df01c8c4b
3 changed files with 4 additions and 6 deletions
@@ -32,8 +32,8 @@
<div class="border-b p-2 shadow-md">
<div class="mx-auto">
<div class="flex w-full flex-wrap md:flex-nowrap justify-end gap-x-2 gap-y-4 h-8 items-center">
<div class="grow px-2 sm:w-full inline-flex items-center gap-4">
<div class="flex w-full flex-wrap md:flex-nowrap justify-end gap-x-2 gap-y-4 items-center">
<div class="grow px-2 inline-flex items-center gap-4 min-w-0">
<div class="text-lg min-w-24 font-bold truncate">{title}</div>{#if tag}
<Badge>tag: {tag}</Badge>
{/if}
@@ -162,10 +162,8 @@
$: innerWidth && changeCollapsed()
function changeCollapsed() {
if (innerWidth < 1248 && innerWidth >= 768) {
if (innerWidth < 1248 && innerWidth >= 768 && !isCollapsed) {
isCollapsed = true
} else if ((innerWidth >= 1248 || innerWidth < 768) && !pathInAppMode($page.url.pathname)) {
isCollapsed = false
}
}
@@ -161,7 +161,7 @@
buttonProps: {
href: `/flows/edit/${path}?nodraft=true&args=${encodeState(args)}`,
variant: 'contained',
size: 'sm',
size: 'xs',
color: 'dark',
disabled: !can_write,
startIcon: Pen