set location column width
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user