Merge remote-tracking branch 'origin/feat/docker-logs' into insiders/ui-ux
This commit is contained in:
1 file changed
+9
-9
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import type { MantineColor } from "@mantine/core";
|
import type { MantineColor } from "@mantine/core";
|
||||||
import { ActionIcon, Avatar, Badge, Box, Button, Group, Menu, Text } from "@mantine/core";
|
import { ActionIcon, Avatar, Badge, Box, Button, Group, Menu, Text, Tooltip } from "@mantine/core";
|
||||||
import {
|
import {
|
||||||
IconCategoryPlus,
|
IconCategoryPlus,
|
||||||
IconDots,
|
IconDots,
|
||||||
@@ -84,11 +84,11 @@ const createColumns = (t: TranslationFunction): MRT_ColumnDef<DockerContainer>[]
|
|||||||
maxSize: 200,
|
maxSize: 200,
|
||||||
Cell({ renderedCellValue, cell }) {
|
Cell({ renderedCellValue, cell }) {
|
||||||
return (
|
return (
|
||||||
<Box maw={200}>
|
<Tooltip label={cell.row.original.image} multiline maw={400}>
|
||||||
<Text truncate="end" title={cell.row.original.image}>
|
<Box maw={200}>
|
||||||
{renderedCellValue}
|
<Text truncate="end">{renderedCellValue}</Text>
|
||||||
</Text>
|
</Box>
|
||||||
</Box>
|
</Tooltip>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -196,9 +196,9 @@ export function DockerTable({ containers, timestamp }: RouterOutputs["docker"]["
|
|||||||
},
|
},
|
||||||
|
|
||||||
initialState: { density: "xs", showGlobalFilter: true, columnVisibility: { cpuUsage: false, memoryUsage: false } },
|
initialState: { density: "xs", showGlobalFilter: true, columnVisibility: { cpuUsage: false, memoryUsage: false } },
|
||||||
renderRowActions: ({ row }: { row: MRT_Row<DockerContainer> }) => (
|
mantineTableBodyCellProps: { style: { padding: "4px 8px" } },
|
||||||
<ContainerRowMenu container={row.original} />
|
mantineTableHeadCellProps: { style: { padding: "4px 8px" } },
|
||||||
),
|
renderRowActions: ({ row }: { row: MRT_Row<DockerContainer> }) => <ContainerRowMenu container={row.original} />,
|
||||||
renderTopToolbarCustomActions: () => (
|
renderTopToolbarCustomActions: () => (
|
||||||
<Button variant="default" rightSection={<IconRefresh size="1rem" />} onClick={() => mutate()} loading={isPending}>
|
<Button variant="default" rightSection={<IconRefresh size="1rem" />} onClick={() => mutate()} loading={isPending}>
|
||||||
{tDocker("action.refresh.label")}
|
{tDocker("action.refresh.label")}
|
||||||
|
|||||||
Reference in new issue
Block a user