Skip to content

Commit

Permalink
fix: Hero buttons not resizing correctly in mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
berry-13 committed Aug 30, 2024
1 parent 1d17129 commit 0d4197d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions components/home/hero.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -267,14 +267,21 @@
.actions {
margin-top: 1.6em;
margin-bottom: 1.4em;
display: block;
align-items: left;
justify-content: left;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap; /* Allow items to wrap to the next line */
font-size: 1rem;
font-size: min(1rem, max(3.5vw, 1.1rem));
font-weight: 500;
}

.actions > * {
flex: 0 0 auto; /* Prevent items from growing or shrinking */
margin: 0.5em; /* Add some margin between items */
width: 150px; /* Set a fixed width for the buttons */
}

a.cta {
margin-right: 0.75rem;
padding: 0.75rem 1.5rem;
Expand Down

0 comments on commit 0d4197d

Please sign in to comment.