style: remove dividing line between basic and extended toolbar

This commit is contained in:
Steffen Becker committed 2026-06-20 00:25:07 +02:00
1 parent a75214dab8
commit 673cafa7a7
3 files changed
+32 -7

No files matched your search

+9 -2
View File
@@ -4,7 +4,7 @@
import AlignButton from './AlignButton.svelte';
import { ORDERED_LIST_TYPES, DEFAULT_ORDERED_TYPE, type OrderedListType } from './orderedListTypes';
let { editor, tick }: { editor: Editor | null; tick: number } = $props();
let { editor, tick, expanded = false }: { editor: Editor | null; tick: number; expanded?: boolean } = $props();
// $derived re-evaluates whenever `tick` changes (i.e. on every TipTap transaction)
let isH1 = $derived(tick >= 0 && !!editor?.isActive('heading', { level: 1 }));
@@ -53,7 +53,7 @@
}
</script>
<div class="toolbar">
<div class="toolbar" class:expanded>
{#if editor}
<div class="toolbar-group">
<button
@@ -225,6 +225,13 @@
z-index: 200;
}
/* When the extended toolbar is shown the two rows form one toolbar: drop the
divider and tighten the bottom padding so the buttons sit at normal spacing. */
.toolbar.expanded {
border-bottom: none;
padding-bottom: 0.2rem;
}
.toolbar-group {
display: flex;
gap: 2px;
+2 -1
View File
@@ -1163,9 +1163,10 @@
display: flex;
align-items: center;
gap: 0.25rem;
padding: 0.4rem 1rem;
padding: 0.2rem 1rem 0.4rem;
background: var(--color-toolbar-bg);
border-bottom: 1px solid var(--color-border);
box-shadow: var(--shadow);
}
/* Layout sits at the far right (logical separation from the rest). order:1