mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix .TableHead.sticky in for details panels (#3331)
* Fix .TableHead.sticky in for details panels Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fine-tune TableHead styling in PodDetailsList Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
f2cd0aa8e8
commit
9c2942c333
@ -54,7 +54,7 @@ export class NodeDetailsResources extends React.Component<Props> {
|
||||
selectable
|
||||
scrollable={false}
|
||||
>
|
||||
<TableHead>
|
||||
<TableHead sticky={false}>
|
||||
<TableCell className="cpu">CPU</TableCell>
|
||||
<TableCell className="memory">Memory</TableCell>
|
||||
<TableCell className="ephemeral-storage">Ephemeral Storage</TableCell>
|
||||
|
||||
@ -28,6 +28,10 @@
|
||||
&.virtual {
|
||||
height: 500px;
|
||||
}
|
||||
|
||||
.TableHead.sticky {
|
||||
top: calc(var(--spacing) * -1);
|
||||
}
|
||||
}
|
||||
|
||||
.TableCell {
|
||||
|
||||
@ -38,7 +38,7 @@
|
||||
position: -webkit-sticky; // safari
|
||||
position: sticky;
|
||||
z-index: 1;
|
||||
top: 0; // turn on sticky behaviour
|
||||
top: 0;
|
||||
}
|
||||
|
||||
&.nowrap {
|
||||
@ -48,6 +48,7 @@
|
||||
.TableCell {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
word-break: normal;
|
||||
|
||||
&.checkbox {
|
||||
> .Checkbox {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user