Skip to content

Commit

Permalink
fix(hero): prevent typemachine overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
louisgrasset committed Jul 13, 2024
1 parent ff038cc commit 21743fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Typemachine/Typemachine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function TypeMachine ({ sentences, } : TypeMachineProps) {
}, [charIndex, sentenceIndex, sentences]);

return (
<div style={{ fontFamily: "'JetBrains Mono', monospace", fontWeight: "600", whiteSpace: "pre" }}>
<div style={{ fontFamily: "'JetBrains Mono', monospace", fontWeight: "600" }}>
{currentSentence}
</div>
);
Expand Down
5 changes: 5 additions & 0 deletions src/sections/Hero/Hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@
font-size: 2rem;
font-weight: 500;
min-height: 25px;

@media screen and (width <= 800px) {
min-height: 50px;
max-width: 300px !important;
}
}

&__actions {
Expand Down

0 comments on commit 21743fa

Please sign in to comment.