Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: sql editor ux detail (#20294)

ecmadao6d6c2da09fb1
diff --git a/frontend/src/react/components/DataExportButton.tsx b/frontend/src/react/components/DataExportButton.tsx
index 8481200412..823fadf352 100644
--- a/frontend/src/react/components/DataExportButton.tsx
+++ b/frontend/src/react/components/DataExportButton.tsx
@@ -355,6 +355,7 @@ export function DataExportButton({
value={limit}
onChange={setLimit}
maximum={presetMax}
+ className="h-9"
/>
</div>
@@ -390,16 +391,11 @@ export function DataExportButton({
</div>
</SheetBody>
<SheetFooter>
- <Button
- variant="outline"
- size="sm"
- onClick={() => setShowDrawer(false)}
- >
+ <Button variant="outline" onClick={() => setShowDrawer(false)}>
{t("common.cancel")}
</Button>
<Button
variant="default"
- size="sm"
disabled={!formIsValid || isRequesting}
onClick={doExport}
>
diff --git a/frontend/src/react/components/sql-editor/SchemaPane/SchemaPane.tsx b/frontend/src/react/components/sql-editor/SchemaPane/SchemaPane.tsx
index 0bff581309..83b6ddf9d4 100644
--- a/frontend/src/react/components/sql-editor/SchemaPane/SchemaPane.tsx
+++ b/frontend/src/react/components/sql-editor/SchemaPane/SchemaPane.tsx
@@ -403,7 +403,16 @@ function SchemaPaneInner() {
);
return (
- <div className="gap-y-1 h-full flex flex-col items-stretch relative overflow-hidden">
+ <div
+ className="gap-y-1 h-full flex flex-col items-stretch relative overflow-hidden"
+ // Fail-safe: hide the hover panel when the cursor leaves the
+ // SchemaPane container entirely (e.g. moves into the main editor
+ // area). Per-row `onMouseLeave` already schedules a hide, but if
+ // the cursor exits through whitespace where no row handler fires
+ // — or crosses through the floating panel itself which keeps
+ // itself alive on hover — the panel can otherwise linger.
+ onMouseLeave={() => hoverState.update(undefined, "after")}
+ >
<div className="px-1 flex flex-row gap-1">
<div className="flex-1 overflow-hidden">
<Input