Skip to content

Commit

Permalink
chore(song): update menu
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaraa committed Jun 3, 2024
1 parent 1548c64 commit 054014c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/views/components/song/mobile_details.templ
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import "fmt"

templ DetailsMobile(song entities.Song) {
<div
class={ "w-[250px]", "h-full", "flex", "flex-col", "gap-y-2", "p-2" }
class={ "w-[250px]", "h-full", "flex", "flex-col", "gap-y-2", "py-2" }
>
<h3 class={ "text-lg", "font-medium" }>Details and options</h3>
<h3 class={ "text-lg", "font-medium" }>Details</h3>
<p class={ "text-md", "max-w-[200px]", "lg:max-w-[600px]", "overflow-hidden", "text-nowrap", "text-ellipsis" }>Added on { song.AddedAt }</p>
if song.PlayTimes == 1 {
<p class={ "text-md", "max-w-[200px]", "overflow-hidden", "text-nowrap", "text-ellipsis" }>Played once</p>
Expand Down
6 changes: 4 additions & 2 deletions app/views/components/song/song.templ
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,12 @@ templ Song(s entities.Song, additionalData []string, additionalOptions []templ.C
templ options(song entities.Song, additionalOptions []templ.Component) {
<div
class={
"flex", "flex-col", "gap-y-1", "p-2", "rounded-md", "min-w-[250px]",
"bg-secondary-trans-20", "backdrop-blur-lg", "shadow-sm", "shadow-accent",
"min-w-[250px]", "bg-accent-trans-20", "p-[15px]", "rounded-[10px]",
"flex", "flex-col", "gap-y-2", "backdrop-blur-lg",
}
>
<h3 class={ "text-lg", "font-medium" }>Song's Options</h3>
<hr/>
for _, option := range additionalOptions {
@option
}
Expand Down

0 comments on commit 054014c

Please sign in to comment.