1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Break only name columns

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-08-25 16:15:18 +03:00
parent d19e3e13ee
commit 6544c08f99
2 changed files with 8 additions and 3 deletions

View File

@ -183,7 +183,11 @@ class NonInjectedPods extends React.Component<Dependencies> {
columnHelper.accessor(row => row.getName(), {
id: "name",
header: "Name",
cell: info => info.getValue(),
cell: info => (
<span style={{ wordBreak: "break-word", whiteSpace: "normal" }}>
{info.getValue()}
</span>
),
size: 130,
}),
columnHelper.display({
@ -214,7 +218,7 @@ class NonInjectedPods extends React.Component<Dependencies> {
}),
columnHelper.accessor(row => this.renderControlledBy(row), {
id: "controlledBy",
header: "Controlled By",
header: "Owners",
cell: info => info.getValue(),
}),
columnHelper.accessor(row => this.renderNodeName(row), {

View File

@ -71,7 +71,8 @@
> div {
padding: 4px 0;
word-break: break-all;
overflow: hidden;
white-space: nowrap;
}
}
}