Skip to content

Commit

Permalink
fix(ViewportOrientationMarkers): Consider marker height when position…
Browse files Browse the repository at this point in the history
…ing bottom marker

In small screens or with multiple layout modes where everything is compressed, the right second and
third letters are at least partially cut off. This update considers a min-height so the text is
always visible.
  • Loading branch information
igoroctaviano committed Dec 7, 2021
1 parent dc7c081 commit f9c2dbe
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.ViewportOrientationMarkers {
--marker-width: 100px;
--marker-height: 100px;
--scrollbar-width: 20px;
pointer-events: none;
font-size: 15px;
Expand All @@ -22,11 +23,17 @@
left: calc(100% - var(--marker-width) - var(--scrollbar-width));
}
.ViewportOrientationMarkers .bottom-mid {
top: 97%;
top: calc(100% - var(--marker-height) - 5px);
left: 47%;
}
.ViewportOrientationMarkers .right-mid .orientation-marker-value {
display: flex;
justify-content: flex-end;
min-width: var(--marker-width);
}
.ViewportOrientationMarkers .bottom-mid .orientation-marker-value {
display: flex;
justify-content: flex-start;
min-height: var(--marker-height);
flex-direction: column-reverse;
}

0 comments on commit f9c2dbe

Please sign in to comment.