Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: absolute positioning of button and enable select all rows (#5643)

Shahmir Varqhafcd0dea60ff1
diff --git a/frontend/src/plugins/impl/data-editor/glide-data-editor.tsx b/frontend/src/plugins/impl/data-editor/glide-data-editor.tsx
index 83f92f5df5..248097215c 100644
--- a/frontend/src/plugins/impl/data-editor/glide-data-editor.tsx
+++ b/frontend/src/plugins/impl/data-editor/glide-data-editor.tsx
@@ -572,7 +572,7 @@ export const GlideDataEditor = <T,>({
};
return (
- <>
+ <div className="relative">
<ErrorBoundary>
<DataEditor
ref={dataEditorRef}
@@ -595,7 +595,6 @@ export const GlideDataEditor = <T,>({
width={"100%"}
rowMarkers={{
kind: "both",
- headerDisabled: true,
}}
rowSelectionMode={"multi"}
onCellEdited={onCellEdited}
@@ -615,13 +614,13 @@ export const GlideDataEditor = <T,>({
variant="destructive"
size="sm"
disabled={selection.rows.length === 0}
- className="bottom-1 right-2 h-7"
+ className="right-2 h-7"
onClick={handleDeleteRows}
>
{selection.rows.length <= 1 ? "Delete row" : "Delete rows"}
</Button>
</div>
- </>
+ </div>
);
};