File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
src/ViewportOrientationMarkers Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
.ViewportOrientationMarkers {
2
+ --marker-width : 100px ;
3
+ --scrollbar-width : 20px ;
2
4
pointer-events : none;
3
5
font-size : 15px ;
4
6
color : # ccc ;
15
17
top : 47% ;
16
18
left : 5px ;
17
19
}
18
-
19
20
.ViewportOrientationMarkers .right-mid {
20
21
top : 47% ;
21
- left : 97 % ;
22
+ left : calc ( 100 % - var ( --marker-width ) - var ( --scrollbar-width )) ;
22
23
}
23
-
24
24
.ViewportOrientationMarkers .bottom-mid {
25
25
top : 97% ;
26
26
left : 47% ;
27
27
}
28
+ .ViewportOrientationMarkers .right-mid .orientation-marker-value {
29
+ display : flex;
30
+ justify-content : flex-end;
31
+ min-width : var (--marker-width );
32
+ }
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ class ViewportOrientationMarkers extends PureComponent {
121
121
className = { `${ m } -mid orientation-marker` }
122
122
key = { `${ m } -mid orientation-marker` }
123
123
>
124
- { markers [ m ] }
124
+ < div className = "orientation-marker-value" > { markers [ m ] } </ div >
125
125
</ div >
126
126
) ) ;
127
127
You can’t perform that action at this time.
0 commit comments