better artist banner heights

This commit is contained in:
Connor Johnstone
2026-03-25 14:40:17 -04:00
parent 00d4e8d3e0
commit d20989f859
2 changed files with 23 additions and 10 deletions
+3 -4
View File
@@ -253,10 +253,8 @@ pub fn artist_page(props: &Props) -> Html {
html! {
<div>
if let Some(ref banner) = d.artist_banner {
<div class="artist-banner" style={format!("background-image: url('{banner}')")}>
</div>
}
<div class={if d.artist_banner.is_some() { "artist-banner-wrap" } else { "" }}
style={d.artist_banner.as_ref().map(|b| format!("background-image: url('{b}')")).unwrap_or_default()}>
<div class="page-header">
<div class="flex items-center justify-between">
<div class="flex gap-2 items-center">
@@ -329,6 +327,7 @@ pub fn artist_page(props: &Props) -> Html {
<p class="text-sm text-muted loading">{ "Loading track counts..." }</p>
}
</div>
</div> // close artist-banner-wrap
if let Some(ref msg) = *message {
<div class="card" style="border-color: var(--success);">