Skip to content

Build your personal knowledge base with Trilium Notes

style/table collections: create a stylesheet dedicated to the table view

Adorian Doran4f42f543d8a5
diff --git a/apps/client/src/stylesheets/table.css b/apps/client/src/stylesheets/table.css
new file mode 100644
index 0000000000..36fb68fbfd
--- /dev/null
+++ b/apps/client/src/stylesheets/table.css
@@ -0,0 +1,4 @@
+.tabulator {
+ background: unset;
+ border: unset;
+}
\ No newline at end of file
diff --git a/apps/client/src/widgets/view_widgets/table_view/index.ts b/apps/client/src/widgets/view_widgets/table_view/index.ts
index 8bdc077eca..2ba41c6cce 100644
--- a/apps/client/src/widgets/view_widgets/table_view/index.ts
+++ b/apps/client/src/widgets/view_widgets/table_view/index.ts
@@ -7,7 +7,8 @@ import type { CommandListenerData, EventData } from "../../../components/app_con
import type { Attribute } from "../../../services/attribute_parser.js";
import note_create from "../../../services/note_create.js";
import {Tabulator, SortModule, FormatModule, InteractionModule, EditModule, ResizeColumnsModule, FrozenColumnsModule, PersistenceModule, MoveColumnsModule, MenuModule, MoveRowsModule, ColumnDefinition} from 'tabulator-tables';
-import "tabulator-tables/dist/css/tabulator_bootstrap5.min.css";
+import "tabulator-tables/dist/css/tabulator.css";
+import "../../../../src/stylesheets/table.css";
import { canReorderRows, configureReorderingRows } from "./dragging.js";
import buildFooter from "./footer.js";
import getPromotedAttributeInformation, { buildRowDefinitions } from "./rows.js";