From 703cf8434a00c790ac2dbb04e1a64803c006486d Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 29 Aug 2025 22:45:20 +0300 Subject: [PATCH] fix(react/widgets): unnecessary padding due to SQL schemas --- apps/client/src/widgets/sql_table_schemas.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/sql_table_schemas.tsx b/apps/client/src/widgets/sql_table_schemas.tsx index a72eabc52..3605c2f95 100644 --- a/apps/client/src/widgets/sql_table_schemas.tsx +++ b/apps/client/src/widgets/sql_table_schemas.tsx @@ -14,9 +14,10 @@ export default function SqlTableSchemas() { server.get("sql/schema").then(setSchemas); }, []); + const isEnabled = note?.mime === "text/x-sqlite;schema=trilium" && schemas; return ( -
- {note?.mime === "text/x-sqlite;schema=trilium" && schemas && ( +
+ {isEnabled && ( <> {t("sql_table_schemas.tables")}{": "}