Fix date column wrapping: wider (140px), whiteSpace nowrap
Made-with: Cursor
This commit is contained in:
@@ -205,13 +205,13 @@ export default function AccountLedgerTab() {
|
||||
return (
|
||||
<Table size="small" sx={{ tableLayout: 'fixed', '& td, & th': { py: 0.6, fontSize: 13 } }}>
|
||||
<colgroup>
|
||||
<col style={{ width: 55 }} />
|
||||
<col style={{ width: 125 }} />
|
||||
{showAccountCol && <col style={{ width: 170 }} />}
|
||||
<col />
|
||||
<col style={{ width: 130 }} />
|
||||
<col style={{ width: 130 }} />
|
||||
<col style={{ width: 50 }} />
|
||||
<col style={{ width: 140 }} />
|
||||
{showAccountCol && <col style={{ width: 160 }} />}
|
||||
<col />
|
||||
<col style={{ width: 125 }} />
|
||||
<col style={{ width: 125 }} />
|
||||
<col style={{ width: 135 }} />
|
||||
</colgroup>
|
||||
<TableHead>
|
||||
<TableRow sx={{ bgcolor: 'primary.main' }}>
|
||||
@@ -251,7 +251,7 @@ export default function AccountLedgerTab() {
|
||||
>
|
||||
{entry.sequenceId || entry.transactionId}
|
||||
</TableCell>
|
||||
<TableCell sx={{ fontSize: 12 }}>
|
||||
<TableCell sx={{ fontSize: 12, whiteSpace: 'nowrap' }}>
|
||||
{new Date(entry.dateTime).toLocaleDateString('sv-SE')}
|
||||
<Typography component="span" sx={{ ml: 0.5, fontSize: 11, color: 'text.disabled' }}>
|
||||
{new Date(entry.dateTime).toLocaleTimeString('sv-SE', { hour: '2-digit', minute: '2-digit' })}
|
||||
|
||||
Reference in New Issue
Block a user