Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
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.cssnew file mode 100644index 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 filediff --git a/apps/client/src/widgets/view_widgets/table_view/index.ts b/apps/client/src/widgets/view_widgets/table_view/index.tsindex 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_conimport 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";