set location column width

This commit is contained in:
smanylov
2026-06-08 14:37:02 +07:00
parent c501c2bbbf
commit 98cb5ab09b
2 changed files with 18 additions and 4 deletions
+14
View File
@@ -833,6 +833,10 @@
padding: 15px 16px; padding: 15px 16px;
} }
} }
&:has(.column-location) {
width: 250px;
}
} }
.column { .column {
@@ -906,6 +910,16 @@
} }
} }
/* &:has(.column-location) {
width: 250px;
} */
.column-location {
width: 250px;
margin: 0 auto;
overflow: hidden;
}
.table-item-file-name-image-wrapper { .table-item-file-name-image-wrapper {
width: 40px; width: 40px;
height: 40px; height: 40px;
@@ -96,9 +96,9 @@ export function TrackingHistoryView() {
return ( return (
<div> <div>
{t('city')}: <strong>{translatedCity}</strong> {t('city')}: <strong title={translatedCity}>{translatedCity}</strong>
<br /> <br />
{t('country')}: <strong>{translatedCountry}</strong> {t('country')}: <strong title={translatedCountry}>{translatedCountry}</strong>
</div> </div>
); );
} }
@@ -247,7 +247,7 @@ export function TrackingHistoryView() {
), ),
cell: ({ row }) => { cell: ({ row }) => {
return ( return (
<div className="text-center font-semibold table-item"> <div className="text-center font-semibold table-item column-location">
{row.original.country === 'unknow/unknow' ? ( {row.original.country === 'unknow/unknow' ? (
t('not-defined') t('not-defined')
) : ( ) : (
@@ -260,7 +260,7 @@ export function TrackingHistoryView() {
], ],
[] []
); );
/* `${editLocationName(row.original.country)}` */
// Создание таблицы // Создание таблицы
const table = useReactTable({ const table = useReactTable({
data: tableData, data: tableData,