set fixed width for document view table

This commit is contained in:
smanylov
2026-06-08 15:16:08 +07:00
parent 98cb5ab09b
commit 6696cc1027
2 changed files with 26 additions and 11 deletions
+20 -5
View File
@@ -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;
}
@@ -108,7 +108,7 @@ export function TrackingHistoryView() {
{
accessorKey: 'document',
header: ({ column }) => (
<div className="column">
<div className="column column-document">
<span>
{t('document')}
</span>
@@ -133,7 +133,7 @@ export function TrackingHistoryView() {
</div>
),
cell: ({ row }) => (
<div className="text-center table-item">
<div className="text-center table-item column-document">
{row.original.document}
</div>
),
@@ -141,7 +141,7 @@ export function TrackingHistoryView() {
{
accessorKey: 'view_date',
header: ({ column }) => (
<div className="column">
<div className="column column-viewer-date">
<span>
{t('date')} / {t('time')}
</span>
@@ -167,7 +167,7 @@ export function TrackingHistoryView() {
),
cell: ({ row }) => {
return (
<div className="text-center table-item">
<div className="text-center table-item column-viewer-date">
{row.original.view_date ? (
<>
{formatDate(row.original.view_date)}
@@ -186,7 +186,7 @@ export function TrackingHistoryView() {
{
accessorKey: 'viewer',
header: ({ column }) => (
<div className="column">
<div className="column column-viewer">
<span>
{t('who-opened')}
</span>
@@ -212,7 +212,7 @@ export function TrackingHistoryView() {
),
cell: ({ row }) => {
return (
<div className="text-center font-semibold table-item">
<div className="text-center font-semibold table-item column-viewer">
{row.original.viewer}
</div>
)