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;
}
}
&:has(.column-location) {
width: 250px;
}
}
.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 {
width: 40px;
height: 40px;
@@ -96,9 +96,9 @@ export function TrackingHistoryView() {
return (
<div>
{t('city')}: <strong>{translatedCity}</strong>
{t('city')}: <strong title={translatedCity}>{translatedCity}</strong>
<br />
{t('country')}: <strong>{translatedCountry}</strong>
{t('country')}: <strong title={translatedCountry}>{translatedCountry}</strong>
</div>
);
}
@@ -247,7 +247,7 @@ export function TrackingHistoryView() {
),
cell: ({ row }) => {
return (
<div className="text-center font-semibold table-item">
<div className="text-center font-semibold table-item column-location">
{row.original.country === 'unknow/unknow' ? (
t('not-defined')
) : (
@@ -260,7 +260,7 @@ export function TrackingHistoryView() {
],
[]
);
/* `${editLocationName(row.original.country)}` */
// Создание таблицы
const table = useReactTable({
data: tableData,