Skip to content

Commit 64b5ca9

Browse files
committed
fix: wrap
1 parent 0851a54 commit 64b5ca9

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

src/components/overrides/LastUpdated.astro

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,28 @@ const info = await getCommitInfo(filePath);
1010
{
1111
lastUpdated && (
1212
<p>
13-
Last updated:
14-
<time datetime={lastUpdated.toISOString()}>
15-
{lastUpdated.toLocaleDateString(lang, {
16-
dateStyle: "medium",
17-
timeZone: "UTC",
18-
})}
19-
</time>
13+
<span class="nowrap">
14+
Last updated:
15+
<time datetime={lastUpdated.toISOString()}>
16+
{lastUpdated.toLocaleDateString(lang, {
17+
dateStyle: "medium",
18+
timeZone: "UTC",
19+
})}
20+
</time>
21+
</span>
22+
{" "}
2023
{info && (
21-
<>
22-
{" by "}
23-
<a href={info.committer.href}>{info.committer.name}</a>
24-
{" in "}
25-
<a href={`https://github.com/${REPO}/commit/${info.hash}`}>{info.hash.substring(0, 7)}</a>
26-
</>
24+
<span class="nowrap">
25+
by <a href={info.committer.href}>{info.committer.name}</a>
26+
in <a href={`https://github.com/${REPO}/commit/${info.hash}`}>{info.hash.substring(0, 7)}</a>
27+
</span>
2728
)}
2829
</p>
2930
)
3031
}
32+
33+
<style>
34+
.nowrap {
35+
white-space: nowrap;
36+
}
37+
</style>

0 commit comments

Comments
 (0)