fix: Docker table resource column overlap regression
The max-width:0 CSS trick from d3f22f06 caused the resource column
content to overlap with the TYPE badge. Use a proper max-w-[300px]
class instead to constrain long container names while maintaining
proper column spacing.
Related to #810, #789
This commit is contained in:
parent
284afbbda1
commit
715c0bb451
1 changed files with 2 additions and 8 deletions
|
|
@ -1280,12 +1280,9 @@ const DockerContainerRow: Component<{
|
|||
<For each={DOCKER_COLUMNS}>
|
||||
{(column) => (
|
||||
<td
|
||||
class="py-0.5 align-middle whitespace-nowrap"
|
||||
class={`py-0.5 align-middle whitespace-nowrap ${column.id === 'resource' ? 'max-w-[300px]' : ''}`}
|
||||
style={{
|
||||
"min-width": column.id === 'cpu' || column.id === 'memory' ? '140px' : undefined,
|
||||
// Force resource column to respect truncation for very long names (issue #789)
|
||||
"max-width": column.id === 'resource' ? '0' : undefined,
|
||||
"width": column.id === 'resource' ? '40%' : undefined,
|
||||
}}
|
||||
>
|
||||
{renderCell(column)}
|
||||
|
|
@ -1990,12 +1987,9 @@ const DockerServiceRow: Component<{
|
|||
<For each={DOCKER_COLUMNS}>
|
||||
{(column) => (
|
||||
<td
|
||||
class="py-0.5 align-middle whitespace-nowrap"
|
||||
class={`py-0.5 align-middle whitespace-nowrap ${column.id === 'resource' ? 'max-w-[300px]' : ''}`}
|
||||
style={{
|
||||
"min-width": column.id === 'cpu' || column.id === 'memory' ? '140px' : undefined,
|
||||
// Force resource column to respect truncation for very long names (issue #789)
|
||||
"max-width": column.id === 'resource' ? '0' : undefined,
|
||||
"width": column.id === 'resource' ? '40%' : undefined,
|
||||
}}
|
||||
>
|
||||
{renderCell(column)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue