From 8a13f037992ef649eb2c3f13477d346554e00156 Mon Sep 17 00:00:00 2001 From: MrPowerGamerBR Date: Fri, 1 Sep 2023 13:06:26 -0300 Subject: [PATCH] This should be applied to the a link, not to the div --- .../galleryofdreams/backend/components/FanArtArtist.kt | 2 +- .../perfectdreams/galleryofdreams/backend/views/FanArtsView.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/kotlin/net/perfectdreams/galleryofdreams/backend/components/FanArtArtist.kt b/backend/src/main/kotlin/net/perfectdreams/galleryofdreams/backend/components/FanArtArtist.kt index 07f1cff..3ac7166 100644 --- a/backend/src/main/kotlin/net/perfectdreams/galleryofdreams/backend/components/FanArtArtist.kt +++ b/backend/src/main/kotlin/net/perfectdreams/galleryofdreams/backend/components/FanArtArtist.kt @@ -18,6 +18,7 @@ fun FlowContent.fanArtArtist( div { a(classes = "entry", href = "/${i18nContext.websiteLocaleIdPath}/artists/${artist.slug}") { attributes["hx-target"] = "#content" + attributes["power-close-sidebar"] = "true" val url = FanArtUtils.getArtistAvatarUrl(dssBaseUrl, namespace, artist, 32) @@ -30,7 +31,6 @@ fun FlowContent.fanArtArtist( div { style = "display: flex; flex-direction: column;" - attributes["power-close-sidebar"] = "true" div { text(artist.name) diff --git a/backend/src/main/kotlin/net/perfectdreams/galleryofdreams/backend/views/FanArtsView.kt b/backend/src/main/kotlin/net/perfectdreams/galleryofdreams/backend/views/FanArtsView.kt index 39701e8..f4c6642 100644 --- a/backend/src/main/kotlin/net/perfectdreams/galleryofdreams/backend/views/FanArtsView.kt +++ b/backend/src/main/kotlin/net/perfectdreams/galleryofdreams/backend/views/FanArtsView.kt @@ -79,7 +79,7 @@ class FanArtsView( } fanArtCardGrid(m, i18nContext, dssBaseUrl, this@FanArtsView.namespace, fanArts) - + div { style = "text-align: center;"