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={{
formatters: {
tableView: true,
nowrap: true,
},
children: (
<>

View File

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