From 5b97e2a8c348f15346d2ea2116325ec5ad510f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20=C5=A0est=C3=A1k?= Date: Thu, 12 Oct 2023 14:13:00 +0200 Subject: [PATCH] Fix years dropdown (bug introduced in #55) --- client/src/main/scala/com/v6ak/zbdb/Renderer.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/main/scala/com/v6ak/zbdb/Renderer.scala b/client/src/main/scala/com/v6ak/zbdb/Renderer.scala index c91ec7b..989dc20 100644 --- a/client/src/main/scala/com/v6ak/zbdb/Renderer.scala +++ b/client/src/main/scala/com/v6ak/zbdb/Renderer.scala @@ -90,7 +90,9 @@ final class Renderer private(participantTable: ParticipantTable, processingError private def yearSelection = dropdownGroup(Seq[Frag](year, " ", span(cls:="caret")))( yearLinksOption match{ - case Some(yearLinks) => yearLinks.reverse.map{case (y, yearLink) => a(href:=yearLink)(y)} + case Some(yearLinks) => yearLinks.reverse.map{case (y, yearLink) => + a(`class`:="dropdown-item", href:=yearLink)(y) + } case None => span(cls:="badge bg-danger")("Ročníky nejsou k dispozici.") } )