Skip to content

Commit

Permalink
Prevent overflow of git hash on small screens (#826)
Browse files Browse the repository at this point in the history
Previously, the "Git info" on the "About tobira" page would overflow
when the screenwidth is below ~`350px` (not a very common screen size
but the fix doesn't hurt the larger ones either).
This wraps the line instead.
  • Loading branch information
LukasKalbertodt committed May 15, 2023
2 parents fc8ba4b + a054e76 commit 7fcfa3d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/routes/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ const About: React.FC = () => {
<br />
{"Git info: "}
<a href={`https://github.com/elan-ev/tobira/commit/${version.gitCommitHash}`}>
<code css={{ fontSize: 14 }}>{version.gitCommitHash}</code>
<code css={{
fontSize: 14,
overflowWrap: "anywhere",
}}>{version.gitCommitHash}</code>
</a>
{version.gitWasDirty && ", dirty"}
<br />
Expand Down

0 comments on commit 7fcfa3d

Please sign in to comment.