Skip to content

Commit b68744e

Browse files
committed
fix: mobile preview display
1 parent 0d9567f commit b68744e

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

static/style/inverted-style.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,14 @@
359359
right: 0;
360360
background-color: #00ffff;
361361
}
362+
@media screen and (max-width: 319px) {
363+
.preview.active{
364+
transform: translateX(0);
365+
}
366+
#issues-container.preview-active{
367+
transform: translateX(0);
368+
}
369+
}
362370
@media screen and (max-width: 896px) {
363371
.full {
364372
display: none !important;
@@ -383,6 +391,8 @@
383391
#toolbar > button {
384392
padding: 12px 16px;
385393
}
394+
395+
386396
}
387397
@media screen and (max-width: 1280px) {
388398
body {
@@ -464,7 +474,7 @@
464474
word-break: break-all;
465475
}
466476
.preview-body-inner {
467-
width: calc(100% - 48px);
477+
/* width: calc(100% - 48px); */
468478
max-width: 640px;
469479
overflow: scroll;
470480
}

static/style/style.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@
359359
right: 0;
360360
background-color: #0ff;
361361
}
362+
362363
@media screen and (max-width: 896px) {
363364
.full {
364365
display: none !important;
@@ -391,10 +392,10 @@
391392
.preview.active {
392393
position: fixed;
393394
right: 0;
394-
transform: translateX(0);
395+
transform: translateX(0) !important;
395396
}
396397
#issues-container.preview-active {
397-
transform: translateX(0);
398+
transform: translateX(0) !important;
398399
}
399400
}
400401
#toolbar > button {
@@ -464,7 +465,7 @@
464465
word-break: break-all;
465466
}
466467
.preview-body-inner {
467-
width: calc(100% - 48px);
468+
/* width: calc(100% - 48px); */
468469
max-width: 640px;
469470
overflow: scroll;
470471
}
@@ -493,7 +494,7 @@
493494
transform: translateX(0%);
494495
flex-wrap: wrap;
495496
overflow: scroll;
496-
max-height: calc(100vh - 130px);
497+
max-height: calc(100vh - 71px);
497498
pointer-events: none;
498499
}
499500
.close-preview svg {

0 commit comments

Comments
 (0)