Skip to content

Commit a1fe11d

Browse files
committed
Fix timeline tooltips fall offscreen when centred
Not the best fix since it looks nicer centred, but simplest and easiest to maintain fix.
1 parent e4d545c commit a1fe11d

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/css/_BRsearch.scss

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
display: none;
1010
position: absolute;
1111
bottom: calc(100% + 5px);
12-
left: 50%;
13-
transform: translateX(-50%);
12+
left: -14px;
1413
width: 350px;
1514
max-width: 100vw;
1615
padding: 12px 14px;
@@ -34,9 +33,7 @@
3433
position: absolute;
3534
content: "";
3635
bottom: -9px;
37-
left: 50%;
38-
margin-left: -1px;
39-
transform: translateX(-50%);
36+
left: 0;
4037
width: 30px;
4138
height: 10px;
4239
clip-path: polygon(0 0, 100% 0, 50% 100%);
@@ -131,9 +128,10 @@
131128
main {
132129
@include ellipsis-lines(4);
133130
margin-bottom: 6px;
131+
&:before { content: ""; }
132+
&:after { content: ""; }
134133
}
135134
footer {
136-
text-align: center;
137135
font-size: 0.85em;
138136
opacity: .8;
139137
}

0 commit comments

Comments
 (0)