Skip to content

Commit

Permalink
fixed random mobile line break
Browse files Browse the repository at this point in the history
  • Loading branch information
bryceerobertson committed Jan 7, 2025
1 parent 2dfb636 commit 2714cd2
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 2714cd2

Please sign in to comment.