Skip to content

Commit

Permalink
feat: do not wrap on dates
Browse files Browse the repository at this point in the history
  • Loading branch information
ca057 committed Nov 28, 2024
1 parent 7b6e54f commit 198a259
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/coffee/index.webc
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@
text-align: center;
margin: var(--spacing-2);
}

.nowrap {
white-space: nowrap;
}
</style>
</head>
<body>
Expand All @@ -104,7 +108,7 @@
</header>
<main>
<p class="info">
A picture of every coffee I drank between <span @text="formatDate(coffees.images[0].day)"></span> and <span @text="formatDate(coffees.images[coffees.images.length-1].day)"></span>.
A picture of every coffee I drank between <span class="nowrap" @text="formatDate(coffees.images[0].day)"></span> and <span class="nowrap" @text="formatDate(coffees.images[coffees.images.length-1].day)"></span>.
</p>
<div class="coffees">
<img
Expand All @@ -122,7 +126,7 @@
</div>
</main>
<footer>
<p class="info footnote">by <a href="/">Christian Ost</a> – last updated on <span @text="formatDate(coffees.createdAt.split('T')[0])"></span></p>
<p class="info footnote">by <a href="/">Christian Ost</a> – last updated on <span class="nowrap" @text="formatDate(coffees.createdAt.split('T')[0])"></span></p>
</footer>
</body>
</html>

0 comments on commit 198a259

Please sign in to comment.