Skip to content
Snippets Groups Projects
Commit 188bfe75 authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[dome] make sidebar section titles sticky

parent 34e78f21
No related branches found
No related tags found
No related merge requests found
...@@ -130,7 +130,10 @@ export function Section(props: SectionProps) { ...@@ -130,7 +130,10 @@ export function Section(props: SectionProps) {
return ( return (
<div className="dome-xSideBarSection"> <div className="dome-xSideBarSection">
<div className="dome-xSideBarSection-title" title={props.label}> <div
className="dome-xSideBarSection-title dome-color-frame"
title={props.label}
>
<Label label={props.label} /> <Label label={props.label} />
{!visible && makeBadge(props.summary)} {!visible && makeBadge(props.summary)}
{foldable && <HideShow visible={visible} onClick={flipState} />} {foldable && <HideShow visible={visible} onClick={flipState} />}
......
...@@ -104,11 +104,12 @@ ...@@ -104,11 +104,12 @@
height: 100% ; height: 100% ;
overflow-x: hidden ; overflow-x: hidden ;
overflow-y: auto ; overflow-y: auto ;
padding-top: 6px ; padding: 0px ;
padding-bottom: 6px ;
} }
.dome-window-active .dome-xSideBar.dome-color-frame { .dome-window-active .dome-xSideBar.dome-color-frame,
.dome-window-active .dome-xSideBarSection-title.dome-color-frame
{
background: #e3e8ec ; background: #e3e8ec ;
} }
...@@ -118,11 +119,14 @@ ...@@ -118,11 +119,14 @@
.dome-xSideBarSection { .dome-xSideBarSection {
display: block ; display: block ;
margin-top: 10px ; padding: 0px ;
margin-bottom: 10px ;
} }
.dome-xSideBarSection-title { .dome-xSideBarSection-title {
position: sticky ;
top: 0px ;
padding-top: 3px ;
padding-bottom: 0px ;
padding-left: 3px ; padding-left: 3px ;
padding-right: 2px ; padding-right: 2px ;
display: flex ; display: flex ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment