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

Better displaying container's info for Pods and all tooltips with formatters={{tableView: true}}

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman 2023-03-09 18:21:35 +02:00
parent d5a124bd79
commit cebde0d2a9
2 changed files with 7 additions and 3 deletions

View File

@ -86,6 +86,7 @@ class NonInjectedPods extends React.Component<Dependencies> {
tooltip={{ tooltip={{
formatters: { formatters: {
tableView: true, tableView: true,
nowrap: true,
}, },
children: ( children: (
<> <>

View File

@ -64,6 +64,7 @@
&.tableView { &.tableView {
min-width: 200px; min-width: 200px;
padding: calc(var(--padding) * 1.5);
> :not(:last-child) { > :not(:last-child) {
margin-bottom: var(--flex-gap); margin-bottom: var(--flex-gap);
@ -77,13 +78,15 @@
.name { .name {
color: var(--textColorAccent); color: var(--textColorAccent);
text-align: right; text-align: right;
flex: 0 0 35%; min-width: 15%;
} }
.value { .value {
flex-grow: 1;
text-align: left; text-align: left;
max-width: 300px; white-space: pre-wrap;
word-break: break-word; word-break: break-all;
color: var(--textColorSecondary);
} }
} }
} }