Skip to content

Commit f760dbd

Browse files
authored
feat(UI): Optimize default UI for small screens (#8436)
Related to #8422 (comment)
1 parent fa81625 commit f760dbd

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

ui/less/ad_controls.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363

6464
&[disabled] {
6565
.disabled-button();
66+
padding: 0;
6667
}
6768
}
6869

ui/less/range_elements.less

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,31 @@
152152
}
153153
}
154154

155+
@media (max-width: 474px) {
156+
.shaka-volume-bar-container {
157+
width: 50px;
158+
159+
&:hover {
160+
width: 50px !important;
161+
}
162+
}
163+
164+
.shaka-mute-button:hover + .shaka-volume-bar-container {
165+
width: 50px;
166+
opacity: 1;
167+
}
168+
}
169+
155170
.shaka-mute-button + .shaka-volume-bar-container {
156171
width: 0;
157172
opacity: 0;
158173
}
159174

160-
.shaka-mute-button:hover + .shaka-volume-bar-container {
161-
width: 100px;
162-
opacity: 1;
175+
@media (min-width: 475px) {
176+
.shaka-mute-button:hover + .shaka-volume-bar-container {
177+
width: 100px;
178+
opacity: 1;
179+
}
163180
}
164181

165182
.shaka-range-element {

0 commit comments

Comments
 (0)