Skip to content

Commit 369a4b1

Browse files
committed
mobile songlist styling
1 parent 85752d5 commit 369a4b1

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

src/routes/songlist/Song.svelte

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,17 @@
3030
}
3131
3232
function checkMenu() {
33-
const currentSong = document.getElementById("current song");
34-
if (currentSong === null) {
35-
return;
36-
}
37-
if (!isMenuOpen || focusedSong.charts.length === 0) {
38-
currentSong.classList.add("max-h-[300px]");
39-
} else if (isMenuOpen && focusedSong.charts.length > 0) {
40-
currentSong.classList.remove("max-h-[300px]");
41-
}
33+
// const currentSong = document.getElementById("current song");
34+
// if (currentSong === null) {
35+
// return;
36+
// }
37+
// if (!isMenuOpen || focusedSong.charts.length === 0) {
38+
// currentSong.classList.add("max-h-[300px]");
39+
// currentSong.classList.remove("max-h-screen");
40+
// } else if (isMenuOpen && focusedSong.charts.length > 0) {
41+
// currentSong.classList.remove("max-h-[300px]");
42+
// currentSong.classList.add("max-h-screen");
43+
// }
4244
}
4345
4446
function checkScreenSize() {
@@ -69,12 +71,14 @@
6971

7072
<div
7173
id="current song"
72-
class="w-screen md:w-1/2 h-screen max-h-screen md:max-h-full flex items-center bg-darknavy relative"
74+
class="w-screen md:w-1/2 h-auto max-h-screen md:max-h-full flex items-center bg-darknavy relative"
7375
>
74-
<canvas id="arrowsbg" class="absolute inset-0 w-full z-0"></canvas>
76+
<canvas id="arrowsbg" class="absolute inset-0 w-full z-0 flex flex-col"
77+
></canvas>
7578
{#if !isNaN(currentIndex)}
7679
<div
77-
class="flex flex-col items-center z-1 relative w-full h-full items-center justify-center"
80+
id="info"
81+
class="flex flex-col items-center z-1 relative w-full items-center justify-center"
7882
>
7983
<div class="bg-navy w-full max-w-[750px] flex flex-col items-left">
8084
{#if focusedSong.banner}

0 commit comments

Comments
 (0)