Skip to content

Commit fad6547

Browse files
authored
Change panel widths on small/mobile screens so they don't cover the whole view (fixes #1370) (#1401)
1 parent c706b8c commit fad6547

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • src/content-handlers/iiif/modules/uv-shared-module/css

src/content-handlers/iiif/modules/uv-shared-module/css/styles.less

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@
240240
}
241241

242242
.leftPanel {
243-
left: 0;
244243
right: auto;
244+
left: 0;
245245
transform: translateX(-100%);
246246

247247
.md-mediaquery({
@@ -252,13 +252,14 @@
252252

253253
.leftPanel.open {
254254
left: 0;
255-
right: 2em;
256255
transform: none;
256+
width: min(95%, 25rem);
257257

258258
.md-mediaquery({
259259
transition-property: none;
260260
left: initial;
261261
right: initial;
262+
width: auto;
262263
});
263264
}
264265

@@ -274,8 +275,8 @@
274275
}
275276

276277
.rightPanel.open {
277-
278278
transform: none;
279+
width: min(95%, 30rem);
279280

280281
.md-mediaquery({
281282
transition-property: none;

0 commit comments

Comments
 (0)