Skip to content

Commit

Permalink
feature: Utilizing more HTMX stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
LichtHund committed Jul 7, 2024
1 parent 74c8cc0 commit 7e2c185
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/src/main/kotlin/banner/BannerMaker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions backend/src/main/kotlin/website/pages/docs/DocsPage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ private fun FlowContent.sideBar(project: ProjectData, version: Version, currentP

div {

attributes["hx-boost"] = "true"
classes = setOf(
"grid",
"grid-cols-1",
Expand Down

0 comments on commit 7e2c185

Please sign in to comment.