mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
fix playlist and album layout responsiveness on 720p
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="ap-container noscroll rounded">
|
<div class="ap-container rounded">
|
||||||
<div id="ap-page">
|
<div id="ap-page">
|
||||||
<header class="ap-page-header" ref="apheader">
|
<header class="ap-page-header" ref="apheader">
|
||||||
<slot name="header"></slot>
|
<slot name="header"></slot>
|
||||||
@@ -43,8 +43,8 @@ const props = defineProps<{
|
|||||||
bottomRaisedCallback?: (routeparams?: RouteParams) => void;
|
bottomRaisedCallback?: (routeparams?: RouteParams) => void;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
let elem: HTMLElement = null;
|
let elem: HTMLElement;
|
||||||
let classlist: DOMTokenList = null;
|
let classlist: DOMTokenList;
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const apheader = ref<HTMLElement>(null);
|
const apheader = ref<HTMLElement>(null);
|
||||||
@@ -52,8 +52,8 @@ const apbottomcontainer = ref(null);
|
|||||||
const bottomContainerRaised = ref(false);
|
const bottomContainerRaised = ref(false);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
elem = document.getElementById("ap-page");
|
elem = document.getElementById("ap-page") as HTMLElement;
|
||||||
classlist = elem.classList;
|
classlist = elem.classList as DOMTokenList;
|
||||||
});
|
});
|
||||||
|
|
||||||
onBeforeRouteUpdate((to) => {
|
onBeforeRouteUpdate((to) => {
|
||||||
@@ -101,6 +101,7 @@ function toggleBottom() {
|
|||||||
.ap-container {
|
.ap-container {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
#ap-page {
|
#ap-page {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
@@ -110,9 +111,9 @@ function toggleBottom() {
|
|||||||
grid-template-rows: 18rem 1fr;
|
grid-template-rows: 18rem 1fr;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
|
|
||||||
.ap-page-content {
|
// .ap-page-content {
|
||||||
padding-bottom: 16rem;
|
// padding-bottom: 16rem;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
.ap-page-bottom-container {
|
.ap-page-bottom-container {
|
||||||
@@ -158,8 +159,7 @@ function toggleBottom() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bottomexpanded {
|
.bottomexpanded {
|
||||||
height: 32rem !important;
|
height: 33rem !important;
|
||||||
scroll-behavior: contain;
|
|
||||||
|
|
||||||
.arrow {
|
.arrow {
|
||||||
transform: rotate(180deg) !important;
|
transform: rotate(180deg) !important;
|
||||||
@@ -178,5 +178,22 @@ function toggleBottom() {
|
|||||||
.addbottompadding {
|
.addbottompadding {
|
||||||
padding-bottom: 16rem;
|
padding-bottom: 16rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@include for-desktop-down {
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
|
#ap-page {
|
||||||
|
height: max-content;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ap-page-bottom-container {
|
||||||
|
position: relative;
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.addbottompadding {
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user