Skip to content

Commit c322a46

Browse files
committed
Fix mobile hero path wrapping
1 parent 0c1b183 commit c322a46

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/pages/Project.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function Project() {
3030
projects
3131
</Link>
3232
<span className="project-breadcrumb-sep">/</span>
33-
<span className="project-breadcrumb-current">{project.slug}</span>
33+
<span className="project-breadcrumb-current">{project.title}</span>
3434
</div>
3535

3636
<h1 className="section-title section-title--case-sensitive">{project.title}</h1>

src/styles.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -605,16 +605,20 @@ p {
605605
}
606606

607607
.hero-command {
608-
font-size: clamp(1.85rem, 10vw, 2.6rem);
608+
font-size: clamp(1.75rem, 8.7vw, 2.2rem);
609609
}
610610

611611
.hero-tagline {
612612
margin-top: 0.7rem;
613613
}
614614

615+
.hero-content {
616+
padding-left: 1rem;
617+
padding-right: 1rem;
618+
}
619+
615620
.hero-command .path {
616-
white-space: normal;
617-
overflow-wrap: anywhere;
621+
white-space: nowrap;
618622
}
619623

620624
.section {

0 commit comments

Comments
 (0)