Skip to content

Commit

Permalink
Prevent line breaks within formatted date (#1066)
Browse files Browse the repository at this point in the history
  • Loading branch information
tillprochaska authored Dec 8, 2024
2 parents 84519dc + c457d26 commit 90c72bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/pages/HomePage.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
border-radius: 4px;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
text-wrap: balance;
}

.home-page__session-info strong {
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ function SessionInfo({ currentSession, lastSession }: SessionInfoProps) {
<>
The last plenary session was held{" "}
{locationName && `in ${locationName} `}
from {startDate} to {endDate}.{" "}
from {startDate?.replaceAll(" ", "\u00a0")} to{" "}
{endDate?.replace(" ", "\u00a0")}.{" "}
<strong>
<a href="/votes">View vote results</a>
</strong>{" "}
Expand Down

0 comments on commit 90c72bb

Please sign in to comment.