Skip to content

Commit e11e1ea

Browse files
Improve 'Now playing' screen for other resolutions as well (#1548)
* Rounded corners on other resolutions * Vertically center text a bit more * Feedback * Feedback
1 parent d251b94 commit e11e1ea

File tree

1 file changed

+27
-20
lines changed

1 file changed

+27
-20
lines changed

src/layouts/default/PlayerOSD/PlayerFullscreen.vue

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
store.activePlayer?.powered != false &&
7070
store.activePlayer?.current_media?.image_url
7171
"
72-
style="max-width: 100%; width: auto"
7372
:src="
7473
getMediaImageUrl(store.activePlayer.current_media.image_url)
7574
"
@@ -177,7 +176,7 @@
177176
store.activePlayer?.powered != false &&
178177
store.curQueueItem?.streamdetails
179178
"
180-
style="margin: auto; padding-top: min(20px, 2vh)"
179+
style="padding-top: min(20px, 2vh)"
181180
>
182181
<QualityDetailsBtn />
183182
</div>
@@ -379,7 +378,6 @@
379378
<div class="main-media-details-image main-media-details-image-alt">
380379
<v-img
381380
v-if="store.activePlayer?.current_media?.image_url"
382-
style="max-width: 100%; width: auto"
383381
:src="
384382
getMediaImageUrl(store.activePlayer.current_media.image_url)
385383
"
@@ -739,17 +737,17 @@ const titleFontSize = computed(() => {
739737
case "xs":
740738
return "1.2em";
741739
case "sm":
742-
return "1.4em";
740+
return "1.5em";
743741
case "md":
744-
return "2em";
742+
return "1.7em";
745743
case "lg":
746-
return store.showQueueItems ? "1.5em" : "2.5em";
744+
return store.showQueueItems ? "1.5em" : "2em";
747745
case "xl":
748-
return store.showQueueItems ? "1.6em" : "3em";
746+
return store.showQueueItems ? "1.6em" : "2.2em";
749747
case "xxl":
750-
return store.showQueueItems ? "1.7em" : "3.2em";
748+
return store.showQueueItems ? "1.7em" : "2.4em";
751749
default:
752-
return "1.0em.";
750+
return "1.0em";
753751
}
754752
});
755753
@@ -758,17 +756,17 @@ const subTitleFontSize = computed(() => {
758756
case "xs":
759757
return "1.05em";
760758
case "sm":
761-
return "1.15em";
759+
return "1.25em";
762760
case "md":
763-
return "1.7em";
761+
return "1.35em";
764762
case "lg":
765-
return store.showQueueItems ? "1.0em" : "1.6em";
763+
return store.showQueueItems ? "1.1em" : "1.45em";
766764
case "xl":
767-
return store.showQueueItems ? "1.2em" : "2em";
765+
return store.showQueueItems ? "1.2em" : "1.6em";
768766
case "xxl":
769-
return store.showQueueItems ? "1.2em" : "2em";
767+
return store.showQueueItems ? "1.3em" : "1.8em";
770768
default:
771-
return "1.0em.";
769+
return "1.0em";
772770
}
773771
});
774772
@@ -1476,10 +1474,13 @@ watchEffect(() => {
14761474
padding-bottom: 5px;
14771475
}
14781476
1479-
.main-media-details {
1477+
.main .main-media-details {
14801478
flex: 50%;
14811479
max-width: 100%;
14821480
width: 50%;
1481+
height: 100%;
1482+
display: flex;
1483+
flex-direction: column;
14831484
}
14841485
14851486
.main-queue-items {
@@ -1503,21 +1504,26 @@ watchEffect(() => {
15031504
min-height: 50%;
15041505
max-height: 80%;
15051506
height: 60%;
1506-
align-content: center;
1507+
display: flex;
1508+
justify-content: center;
1509+
align-items: center;
15071510
padding-left: 20px;
15081511
padding-right: 20px;
1512+
container-type: size;
15091513
}
15101514
.main-media-details-image .v-img {
1511-
width: auto;
1515+
width: min(100cqi, 100cqh);
1516+
height: min(100cqi, 100cqh);
1517+
flex: 0 0 auto;
15121518
border-radius: 10px;
15131519
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
1520+
overflow: hidden;
15141521
}
15151522
15161523
.main-media-details-image-alt {
15171524
height: 100% !important;
15181525
max-height: 100% !important;
1519-
align-content: center;
1520-
padding: 0px !important;
1526+
padding: 10px !important;
15211527
}
15221528
15231529
.main-media-details-track-info {
@@ -1538,6 +1544,7 @@ watchEffect(() => {
15381544
bottom: 0;
15391545
position: unset !important;
15401546
padding-bottom: 5%;
1547+
width: 100%;
15411548
}
15421549
15431550
.track-info {

0 commit comments

Comments
 (0)