fix: improve cte review presentation

This commit is contained in:
User
2026-07-14 15:08:10 +02:00
parent 27af6733c8
commit 18701f020e
6 changed files with 147 additions and 75 deletions
+12 -10
View File
@@ -89,16 +89,18 @@ export function SqlViewer({ blocks }: { blocks: SqlBlock[] }) {
return (
<div className="sql-viewer">
<div className="flex gap-2 mb-2">
<button
className="text-xs px-2 py-1 rounded-md border border-border/70 shadow-xs transition-colors hover:bg-accent"
onClick={() =>
setLayout((l) => (l === "vertical" ? "horizontal" : "vertical"))
}
>
{layout === "vertical" ? "Horizontal" : "Vertical"}
</button>
</div>
{blocks.length > 1 && (
<div className="flex gap-2 mb-2">
<button
className="text-xs px-2 py-1 rounded-md border border-border/70 shadow-xs transition-colors hover:bg-accent"
onClick={() =>
setLayout((l) => (l === "vertical" ? "horizontal" : "vertical"))
}
>
{layout === "vertical" ? "Horizontal" : "Vertical"}
</button>
</div>
)}
<div
className={