Stick hours to the left of the screen when scrolling
This commit is contained in:
parent
ba4cb919bd
commit
78eb51d735
|
|
@ -15,14 +15,20 @@
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 40px;
|
|
||||||
padding-right: 6px;
|
padding-right: 6px;
|
||||||
|
position: sticky;
|
||||||
|
left: 6px;
|
||||||
|
z-index: 5;
|
||||||
|
overflow: hidden;
|
||||||
|
padding-top: 1em;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.timeSpace {
|
.timeSpace {
|
||||||
height: 10px;
|
height: 10px;
|
||||||
position: relative;
|
position: relative;
|
||||||
border-top: 2px solid transparent;
|
border-top: 2px solid transparent;
|
||||||
|
text-align: right;
|
||||||
|
|
||||||
&.grey {
|
&.grey {
|
||||||
background-origin: border-box;
|
background-origin: border-box;
|
||||||
|
|
@ -37,13 +43,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.timeLabel {
|
.timeLabel {
|
||||||
display: block;
|
display: inline-block;
|
||||||
position: absolute;
|
transform: translateY(calc(-50% - 2px));
|
||||||
top: -.7em;
|
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
text-align: right;
|
|
||||||
user-select: none;
|
user-select: none;
|
||||||
width: 100%;
|
background: var(--background);
|
||||||
|
border-radius: .3em;
|
||||||
|
padding: .1em .2em;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dateColumn {
|
.dateColumn {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue