mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-15 08:33:03 +00:00
Fix Docker host header clipping
This commit is contained in:
@@ -166,36 +166,56 @@ export const DockerHostsTable: Component<{
|
||||
bars aren't squeezed by table-fixed's equal split. Mobile
|
||||
widths (w-[40%], w-[20%]) are unchanged.
|
||||
*/}
|
||||
<TableHead class={`${getPlatformTableHeadClassForKind('name')} w-[40%] md:w-[15%]`}>
|
||||
<TableHead
|
||||
class={`${getPlatformTableHeadClassForKind('name')} w-[40%] md:w-[13%]`}
|
||||
>
|
||||
Host
|
||||
</TableHead>
|
||||
<TableHead class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[7%]`}>
|
||||
<TableHead
|
||||
class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[7%]`}
|
||||
>
|
||||
System
|
||||
</TableHead>
|
||||
<TableHead class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[7%]`}>
|
||||
<TableHead
|
||||
class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[7%]`}
|
||||
>
|
||||
Version
|
||||
</TableHead>
|
||||
<TableHead class={`${getPlatformTableHeadClassForKind('numeric-value')} hidden md:table-cell md:w-[9%]`}>
|
||||
<TableHead
|
||||
class={`${getPlatformTableHeadClassForKind('numeric-value')} hidden md:table-cell md:w-[9%]`}
|
||||
>
|
||||
Containers
|
||||
</TableHead>
|
||||
<TableHead class={`${getPlatformTableHeadClassForKind('metric-bar')} w-[20%] md:w-[14%]`}>
|
||||
<TableHead
|
||||
class={`${getPlatformTableHeadClassForKind('metric-bar')} w-[20%] md:w-[14%]`}
|
||||
>
|
||||
CPU
|
||||
</TableHead>
|
||||
<TableHead class={`${getPlatformTableHeadClassForKind('metric-bar')} w-[20%] md:w-[14%]`}>
|
||||
<TableHead
|
||||
class={`${getPlatformTableHeadClassForKind('metric-bar')} w-[20%] md:w-[14%]`}
|
||||
>
|
||||
<span class="md:hidden">Mem</span>
|
||||
<span class="hidden md:inline">Memory</span>
|
||||
</TableHead>
|
||||
<TableHead class={`${getPlatformTableHeadClassForKind('metric-bar')} w-[20%] md:w-[14%]`}>
|
||||
<TableHead
|
||||
class={`${getPlatformTableHeadClassForKind('metric-bar')} w-[20%] md:w-[14%]`}
|
||||
>
|
||||
Disk
|
||||
</TableHead>
|
||||
<TableHead class={`${getPlatformTableHeadClassForKind('numeric-value')} hidden md:table-cell md:w-[6%]`}>
|
||||
<TableHead
|
||||
class={`${getPlatformTableHeadClassForKind('numeric-value')} hidden md:table-cell md:w-[6%]`}
|
||||
>
|
||||
Uptime
|
||||
</TableHead>
|
||||
<TableHead class={`${getPlatformTableHeadClassForKind('numeric-value')} hidden md:table-cell md:w-[6%]`}>
|
||||
<TableHead
|
||||
class={`${getPlatformTableHeadClassForKind('numeric-value')} hidden md:table-cell md:w-[6%]`}
|
||||
>
|
||||
Temp
|
||||
</TableHead>
|
||||
<Show when={showSwarmColumn()}>
|
||||
<TableHead class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[9%]`}>
|
||||
<TableHead
|
||||
class={`${getPlatformTableHeadClassForKind('text')} hidden md:table-cell md:w-[10%]`}
|
||||
>
|
||||
Swarm role
|
||||
</TableHead>
|
||||
</Show>
|
||||
@@ -262,7 +282,9 @@ export const DockerHostsTable: Component<{
|
||||
onKeyDown={handleActivationKey}
|
||||
tabIndex={0}
|
||||
>
|
||||
<TableCell class={`${getPlatformTableCellClassForKind('name')} w-[40%] md:w-auto`}>
|
||||
<TableCell
|
||||
class={`${getPlatformTableCellClassForKind('name')} w-[40%] md:w-auto`}
|
||||
>
|
||||
<div class="flex min-w-0 items-center gap-2">
|
||||
<StatusDot
|
||||
size="sm"
|
||||
|
||||
+5
@@ -132,6 +132,11 @@ describe('platform overview layout guardrails', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('keeps Docker host optional Swarm column wide enough for its header', () => {
|
||||
expect(dockerHostsTableSource).toContain('Swarm role');
|
||||
expect(dockerHostsTableSource).toContain('md:w-[10%]');
|
||||
});
|
||||
|
||||
it('keeps provider overview pages in the parent-table plus child-inventory stack', () => {
|
||||
for (const source of overviewSurfaceSources) {
|
||||
expect(source).toContain('<div class="space-y-4">');
|
||||
|
||||
Reference in New Issue
Block a user