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

Adding separators to sidebar menu

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-06-22 10:03:28 +03:00
parent 386c6a3a4d
commit d6b641ce61
2 changed files with 15 additions and 0 deletions

View File

@ -87,6 +87,7 @@ export class EntitySettings extends React.Component<Props> {
<Tabs className="flex column" scrollable={false} onChange={this.onTabChange} value={this.activeTab}> <Tabs className="flex column" scrollable={false} onChange={this.onTabChange} value={this.activeTab}>
{ groups.map((group, groupIndex) => ( { groups.map((group, groupIndex) => (
<React.Fragment key={`group-${groupIndex}`}> <React.Fragment key={`group-${groupIndex}`}>
<hr/>
<div className="header">{group[0]}</div> <div className="header">{group[0]}</div>
{ group[1].map((setting, index) => ( { group[1].map((setting, index) => (
<Tab <Tab

View File

@ -61,6 +61,19 @@
font-weight: 600; font-weight: 600;
} }
hr {
margin-top: 10px;
margin-bottom: 10px;
margin-left: 10px;
margin-right: 20px;
height: 1px;
border-top: thin solid var(--hrColor);
&:first-child {
display: none;
}
}
.Tabs { .Tabs {
.header { .header {
padding: 6px 10px; padding: 6px 10px;
@ -102,6 +115,7 @@
> .label { > .label {
width: 100%; width: 100%;
font-weight: 500;
} }
} }
} }