From 6696cc1027a5e9222827b7007056e273561e4f1a Mon Sep 17 00:00:00 2001 From: smanylov Date: Mon, 8 Jun 2026 15:16:08 +0700 Subject: [PATCH] set fixed width for document view table --- src/app/styles/pages-styles.scss | 25 +++++++++++++++---- .../tracking-page/tracking-history-view.tsx | 12 ++++----- 2 files changed, 26 insertions(+), 11 deletions(-) diff --git a/src/app/styles/pages-styles.scss b/src/app/styles/pages-styles.scss index d106a92..60f3802 100644 --- a/src/app/styles/pages-styles.scss +++ b/src/app/styles/pages-styles.scss @@ -910,13 +910,28 @@ } } -/* &:has(.column-location) { - width: 250px; - } */ + &:has(.column-document) { + width: 35%; + } + &:has(.column-viewer-date) { + width: 15%; + } + + &:has(.column-viewer) { + width: 25%; + } + + &:has(.column-location) { + width: 25%; + } + + .column-document, + .column-viewer-date, + .column-viewer, .column-location { - width: 250px; - margin: 0 auto; + /* width: 250px; + margin: 0 auto; */ overflow: hidden; } diff --git a/src/app/ui/tracking-page/tracking-history-view.tsx b/src/app/ui/tracking-page/tracking-history-view.tsx index ec90759..dc5ddd9 100644 --- a/src/app/ui/tracking-page/tracking-history-view.tsx +++ b/src/app/ui/tracking-page/tracking-history-view.tsx @@ -108,7 +108,7 @@ export function TrackingHistoryView() { { accessorKey: 'document', header: ({ column }) => ( -
+
{t('document')} @@ -133,7 +133,7 @@ export function TrackingHistoryView() {
), cell: ({ row }) => ( -
+
{row.original.document}
), @@ -141,7 +141,7 @@ export function TrackingHistoryView() { { accessorKey: 'view_date', header: ({ column }) => ( -
+
{t('date')} / {t('time')} @@ -167,7 +167,7 @@ export function TrackingHistoryView() { ), cell: ({ row }) => { return ( -
+
{row.original.view_date ? ( <> {formatDate(row.original.view_date)} @@ -186,7 +186,7 @@ export function TrackingHistoryView() { { accessorKey: 'viewer', header: ({ column }) => ( -
+
{t('who-opened')} @@ -212,7 +212,7 @@ export function TrackingHistoryView() { ), cell: ({ row }) => { return ( -
+
{row.original.viewer}
)