Commit 188bfe75 authored by Loïc Correnson's avatar Loïc Correnson

[dome] make sidebar section titles sticky

parent 34e78f21
......@@ -130,7 +130,10 @@ export function Section(props: SectionProps) {
return (
<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} />
{!visible && makeBadge(props.summary)}
{foldable && <HideShow visible={visible} onClick={flipState} />}
......
......@@ -104,11 +104,12 @@
height: 100% ;
overflow-x: hidden ;
overflow-y: auto ;
padding-top: 6px ;
padding-bottom: 6px ;
padding: 0px ;
}
.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 ;
}
......@@ -118,11 +119,14 @@
.dome-xSideBarSection {
display: block ;
margin-top: 10px ;
margin-bottom: 10px ;
padding: 0px ;
}
.dome-xSideBarSection-title {
position: sticky ;
top: 0px ;
padding-top: 3px ;
padding-bottom: 0px ;
padding-left: 3px ;
padding-right: 2px ;
display: flex ;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment