From 7e2c1855f66e0169016310b0f31c9948c9ff2bc1 Mon Sep 17 00:00:00 2001 From: Matt Date: Sun, 7 Jul 2024 20:35:43 +0100 Subject: [PATCH] feature: Utilizing more HTMX stuff --- backend/src/main/kotlin/banner/BannerMaker.kt | 6 +++--- backend/src/main/kotlin/website/pages/docs/DocsPage.kt | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/src/main/kotlin/banner/BannerMaker.kt b/backend/src/main/kotlin/banner/BannerMaker.kt index bdeee34..62ea62f 100644 --- a/backend/src/main/kotlin/banner/BannerMaker.kt +++ b/backend/src/main/kotlin/banner/BannerMaker.kt @@ -37,16 +37,16 @@ public class BannerMaker { // First write the bold part font = fontBold.deriveFont(45f) - title?.let { drawString(it.trimAround(contextLength = 20), 66, 429) } + title?.let { drawString(it.trimAround(contextLength = 25), 66, 429) } // Then the rest - font = fontRegular.deriveFont(20f) + font = fontRegular.deriveFont(30f) drawString(group, 66, 359) subTitle?.let { var location = 479 val lineSize = 50 - val lines = it.splitSentence(maxLength = 50) + val lines = it.splitSentence(maxLength = 40) lines.forEach { line -> drawString(line, 66, location) diff --git a/backend/src/main/kotlin/website/pages/docs/DocsPage.kt b/backend/src/main/kotlin/website/pages/docs/DocsPage.kt index 720cea6..c2f0772 100644 --- a/backend/src/main/kotlin/website/pages/docs/DocsPage.kt +++ b/backend/src/main/kotlin/website/pages/docs/DocsPage.kt @@ -441,6 +441,7 @@ private fun FlowContent.sideBar(project: ProjectData, version: Version, currentP div { + attributes["hx-boost"] = "true" classes = setOf( "grid", "grid-cols-1",