fix: restore structure editor vertical scrolling

This commit is contained in:
t8y2 committed 2026-05-26 12:26:21 +08:00
1 parent 5a420548fb
commit 309c2d1555
2 files changed
+20 -12

No files matched your search

@@ -62,3 +62,11 @@ test("structure editor uses a dense wide layout for large tables", () => {
assert.match(source, /w-36/);
assert.match(source, /w-24/);
});
test("structure editor keeps the table body vertically scrollable", () => {
assert.match(source, /class="flex h-full min-h-0 flex-col gap-2 overflow-hidden p-3 text-\[11px\]"/);
assert.match(source, /class="grid min-h-0 flex-1 grid-cols-\[minmax\(0,1fr\)_300px\] gap-2 overflow-hidden"/);
assert.match(source, /class="min-h-0 min-w-0 overflow-hidden rounded-md border"/);
assert.match(source, /class="flex h-full min-h-0 flex-col"/);
assert.match(source, /<TabsContent value="columns" class="m-0 min-h-0 flex-1 overflow-auto p-0">/);
});