tooptip: flex-auto

This commit is contained in:
Nikita Galaiko 2023-03-31 08:15:26 +02:00
parent e9405f9342
commit 1cd7d11de9
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@
</script>
<div
class="h-fit w-fit"
class="flex-auto overflow-auto"
on:mouseenter={() => (timeout = setTimeout(() => (showTooltip = true), timeoutMilliseconds))}
on:mouseleave={() => {
clearTimeout(timeout);

View File

@ -143,9 +143,9 @@
<div class="flex items-center justify-between gap-2">
<Tooltip label={$head}>
<div
class="flex items-center gap-2 rounded border border-zinc-600 bg-zinc-700 py-2 px-4 text-zinc-300"
class="flex items-center gap-1 rounded border border-zinc-600 bg-zinc-700 py-2 px-4 text-zinc-300"
>
<IconGitBranch class="h-4 w-4 fill-zinc-400 stroke-none" />
<IconGitBranch class="h-7 w-7 fill-zinc-400 stroke-none" />
<span title={$head} class="truncate font-mono text-zinc-300">
{$head}
</span>