Skip to content

Build your personal knowledge base with Trilium Notes

feat(sql_console): improve no results

Elian Doran7179701e0f9c
diff --git a/apps/client/src/widgets/type_widgets/SqlConsole.tsx b/apps/client/src/widgets/type_widgets/SqlConsole.tsx
index ad03f38a72..42c19c62ea 100644
--- a/apps/client/src/widgets/type_widgets/SqlConsole.tsx
+++ b/apps/client/src/widgets/type_widgets/SqlConsole.tsx
@@ -57,9 +57,10 @@ function SqlResults({ ntxId }: TypeWidgetProps) {
return (
<div className="sql-result-widget">
{results?.length === 1 && Array.isArray(results[0]) && results[0].length === 0 ? (
- <Alert type="info">
- {t("sql_result.no_rows")}
- </Alert>
+ <NoItems
+ icon="bx bx-rectangle"
+ text={t("sql_result.no_rows")}
+ />
) : (
<div className="sql-console-result-container selectable-text">
{results?.map((rows, index) => {