Skip to content

Commit

Permalink
Merge pull request #873 from StampyAI/bryce-correct-hcih-title
Browse files Browse the repository at this point in the history
Fixed random mobile line break
  • Loading branch information
LeMurphant authored Jan 7, 2025
2 parents 2dfb636 + 2714cd2 commit 5e6db41
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions app/components/HowCanIHelp/howcanihelp.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,15 @@
.link-card .image + div {
max-width: calc(100% - 105px);
}

/* Show line break on desktop */
.title-break {
display: inline;
}

/* Hide line break on mobile */
@media (max-width: 1136px) {
.title-break {
display: none;
}
}
2 changes: 1 addition & 1 deletion app/routes/how-can-i-help._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function HowCanIHelp() {
<div className="page-body padding-top-56">
<div className="flexbox padding-bottom-80">
<h1 className="teal-500 col-7">
How can I help with<br></br> AI safety?
How can I help with <br className="title-break"></br>AI safety?
</h1>
<p className="large col-5 desktop-only">
The AI safety movement is still relatively new, and your actions could have significant
Expand Down

0 comments on commit 5e6db41

Please sign in to comment.