From 9ec4c96dd1992c685b636e48a6e3d1a971ecea59 Mon Sep 17 00:00:00 2001 From: wandji20 Date: Thu, 14 Mar 2024 20:08:56 +0100 Subject: [PATCH] Change table fonts and allow copy text [SCI-10443] --- app/assets/stylesheets/application.tailwind.css | 3 +++ app/javascript/vue/shared/datatable/table.vue | 1 + 2 files changed, 4 insertions(+) diff --git a/app/assets/stylesheets/application.tailwind.css b/app/assets/stylesheets/application.tailwind.css index 33fd41aac..c6d19909b 100644 --- a/app/assets/stylesheets/application.tailwind.css +++ b/app/assets/stylesheets/application.tailwind.css @@ -61,3 +61,6 @@ html { .ag-pinned-left-header .ag-header-cell:last-child .ag-header-cell-resize:after { opacity: 0; } +.ag-theme-alpine { + --ag-font-family: "SN Inter", "Open Sans", Arial, Helvetica, sans-serif !important; +} diff --git a/app/javascript/vue/shared/datatable/table.vue b/app/javascript/vue/shared/datatable/table.vue index a4dce6700..42eb3e72f 100644 --- a/app/javascript/vue/shared/datatable/table.vue +++ b/app/javascript/vue/shared/datatable/table.vue @@ -48,6 +48,7 @@ :gridOptions="gridOptions" :suppressRowClickSelection="true" :getRowClass="getRowClass" + :enableCellTextSelection="true" @grid-ready="onGridReady" @first-data-rendered="onFirstDataRendered" @sortChanged="setOrder"