Skip to content

Commit 75ac72a

Browse files
Schedules (list): Align the schedule header with list items
1 parent a556821 commit 75ac72a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

public/css/list/schedule-list.less

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
// Header
22
.schedules-header {
33
margin-left: 12em;
4-
width: ~"calc(100% - 12em)";
5-
6-
padding-right: 2em; // align the header with the list items
7-
padding-left: 0.5em;
4+
margin-right: 1em;
5+
width: ~"calc(100% - 13em)"; // margin-left + margin-right
86

97
.days-header {
108
display: grid;
@@ -29,7 +27,6 @@
2927

3028
.caption {
3129
display: flex;
32-
margin-left: 0.5em;
3330
width: 100%;
3431
height: 2em;
3532
align-items: center;

public/css/timeline.less

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
--primaryRowHeight: 4em;
1212
--daysHeaderHeight: 3em;
1313
position: relative;
14-
margin-right: 1em; // make midnight timestamp visible
14+
15+
&:has(.timescale) {
16+
margin-right: 1em; // make midnight timestamp visible
17+
}
1518

1619
.time-grid-header {
1720
box-sizing: border-box;

0 commit comments

Comments
 (0)