mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Cleaning up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
4151b754ad
commit
4130c3ce91
@ -23,11 +23,9 @@
|
||||
|
||||
.CRDDetails {
|
||||
.conditions {
|
||||
.Badge {
|
||||
@include crd-condition-bgc;
|
||||
}
|
||||
@include crd-condition-bgc;
|
||||
}
|
||||
|
||||
|
||||
.Table {
|
||||
margin-left: -$margin * 2;
|
||||
margin-right: -$margin * 2;
|
||||
@ -41,21 +39,8 @@
|
||||
flex: 0.5;
|
||||
}
|
||||
|
||||
.description {
|
||||
flex: 1.5;
|
||||
|
||||
.Badge {
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
.json-path {
|
||||
flex: 3;
|
||||
|
||||
.Badge {
|
||||
white-space: pre-line;
|
||||
text-overflow: initial;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -25,7 +25,6 @@ import React from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { observer } from "mobx-react";
|
||||
import type { CustomResourceDefinition } from "../../api/endpoints/crd.api";
|
||||
import { cssNames } from "../../utils";
|
||||
import { AceEditor } from "../ace-editor";
|
||||
import { Badge } from "../badge";
|
||||
import { DrawerItem, DrawerTitle } from "../drawer";
|
||||
@ -86,7 +85,8 @@ export class CRDDetails extends React.Component<Props> {
|
||||
<Badge
|
||||
key={type}
|
||||
label={type}
|
||||
className={cssNames({ disabled: status === "False" }, type)}
|
||||
disabled={status === "False"}
|
||||
className={type}
|
||||
tooltip={(
|
||||
<>
|
||||
<p>{message}</p>
|
||||
|
||||
@ -21,13 +21,9 @@
|
||||
|
||||
.CrdResourceDetails {
|
||||
.status {
|
||||
.value {
|
||||
.Badge {
|
||||
&.ready {
|
||||
color: white;
|
||||
background-color: $colorOk;
|
||||
}
|
||||
}
|
||||
.ready {
|
||||
color: white;
|
||||
background-color: $colorOk;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -90,7 +90,8 @@ export class CrdResourceDetails extends React.Component<Props> {
|
||||
.map(({ kind, message, status }, index) => (
|
||||
<Badge
|
||||
key={kind + index} label={kind}
|
||||
className={cssNames({ disabled: status === "False" }, kind.toLowerCase())}
|
||||
disabled={status === "False"}
|
||||
className={kind.toLowerCase()}
|
||||
tooltip={message}
|
||||
/>
|
||||
));
|
||||
|
||||
@ -30,7 +30,7 @@ $crd-condition-colors: (
|
||||
|
||||
@mixin crd-condition-bgc {
|
||||
@each $status, $color in $crd-condition-colors {
|
||||
&.#{$status} {
|
||||
.#{$status} {
|
||||
background: $color;
|
||||
color: white;
|
||||
}
|
||||
|
||||
@ -24,9 +24,6 @@
|
||||
--status-default-bg: #{$colorError};
|
||||
|
||||
.conditions {
|
||||
.Badge {
|
||||
cursor: default;
|
||||
@include node-status-bgs;
|
||||
}
|
||||
@include node-status-bgs;
|
||||
}
|
||||
}
|
||||
@ -33,7 +33,7 @@ $node-status-color-list: (
|
||||
|
||||
@mixin node-status-bgs {
|
||||
@each $status, $color in $node-status-color-list {
|
||||
&.#{$status} {
|
||||
.#{$status} {
|
||||
background: $color;
|
||||
color: white;
|
||||
}
|
||||
|
||||
@ -33,8 +33,6 @@
|
||||
}
|
||||
|
||||
.conditions {
|
||||
.Badge {
|
||||
@include job-condition-bgs;
|
||||
}
|
||||
@include job-condition-bgs;
|
||||
}
|
||||
}
|
||||
@ -22,8 +22,6 @@
|
||||
|
||||
.JobDetails {
|
||||
.conditions {
|
||||
.Badge {
|
||||
@include job-condition-bgs;
|
||||
}
|
||||
@include job-condition-bgs;
|
||||
}
|
||||
}
|
||||
@ -58,8 +58,4 @@
|
||||
|
||||
@include pod-status-colors;
|
||||
}
|
||||
|
||||
.Badge {
|
||||
white-space: normal;
|
||||
}
|
||||
}
|
||||
@ -98,7 +98,7 @@ $cronjob-condition-color-list: (
|
||||
|
||||
@mixin job-condition-bgs {
|
||||
@each $condition, $color in $job-condition-color-list {
|
||||
&.#{$condition} {
|
||||
.#{$condition} {
|
||||
color: white;
|
||||
background: $color;
|
||||
}
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
flex-direction: column;
|
||||
|
||||
> * {
|
||||
&.Badge:hover {
|
||||
&.LegendBadge:hover {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
|
||||
@ -30,10 +30,6 @@
|
||||
margin-right: var(--padding);
|
||||
}
|
||||
|
||||
.Badge {
|
||||
background-color: var(--dockBadgeBackground);
|
||||
}
|
||||
|
||||
> .controls {
|
||||
white-space: nowrap;
|
||||
flex: 1 1;
|
||||
|
||||
@ -70,7 +70,7 @@ export class PageFiltersList extends React.Component<Props> {
|
||||
<Badge
|
||||
key={`${type}-${value}`}
|
||||
title={type}
|
||||
className={cssNames("flex gaps filter align-center", type)}
|
||||
className={cssNames("Badge flex gaps filter align-center", type)}
|
||||
label={(
|
||||
<>
|
||||
<FilterIcon type={type}/>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user