Skip to content

Commit 929bee4

Browse files
committed
fix(search): overflow
1 parent e6e61b8 commit 929bee4

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

views/pages/search_results.templ

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,16 @@ templ searchHeader() {
2727
}
2828

2929
templ searchContent(results []entities.Song, playlists []entities.Playlist, songsInPlaylists map[string]bool) {
30-
for idx, res := range results {
31-
@song.Song(res, nil, []templ.Component{playlist.PlaylistsPopup(idx, res.YtId, playlists, songsInPlaylists)}, playSong(res), true)
32-
}
30+
<div
31+
class={
32+
"w-full", "overflow-y-scroll", "min-h-[40vh]", "max-h-[50vh]", "md:max-h-[65vh]",
33+
"flex", "flex-col", "gap-5", "lg:mb-5",
34+
}
35+
>
36+
for idx, res := range results {
37+
@song.Song(res, nil, []templ.Component{playlist.PlaylistsPopup(idx, res.YtId, playlists, songsInPlaylists)}, playSong(res), true)
38+
}
39+
</div>
3340
}
3441

3542
script playSong(song entities.Song) {

0 commit comments

Comments
 (0)