Skip to content

Commit af626a8

Browse files
authored
Merge pull request #55 from crux-bphc/fix/mobile-nav
Fixed minor ux issue where mobile navbar links wouldn't work when clicked outside of text area
2 parents 2e35d5b + 70b89f4 commit af626a8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

frontend/src/components/Navbar.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default function Navbar() {
123123
<div className="flex flex-col items-start pl-6 gap-6 flex-grow">
124124
<Link
125125
to="/"
126-
className="group transition-all duration-200 hover:scale-110 flex gap-4 text-xl text-highlight-light items-center"
126+
className="group transition-all duration-200 hover:scale-110 flex gap-4 text-xl text-highlight-light items-center w-52"
127127
activeProps={{
128128
className:
129129
"group transition-all duration-200 hover:scale-110 active",
@@ -140,7 +140,7 @@ export default function Navbar() {
140140
<Link
141141
to="/leaderboard"
142142
search={{ batch: undefined, level: undefined }}
143-
className="group transition-all duration-200 hover:scale-110 flex gap-4 text-xl text-highlight-light items-center"
143+
className="group transition-all duration-200 hover:scale-110 flex gap-4 text-xl text-highlight-light items-center w-52"
144144
activeProps={{
145145
className:
146146
"group transition-all duration-200 hover:scale-110 active",
@@ -156,7 +156,7 @@ export default function Navbar() {
156156
</Link>
157157
<Link
158158
to="/potd"
159-
className="group transition-all duration-200 hover:scale-110 flex gap-4 text-xl text-highlight-light items-center"
159+
className="group transition-all duration-200 hover:scale-110 flex gap-4 text-xl text-highlight-light items-center w-52"
160160
activeProps={{
161161
className:
162162
"group transition-all duration-200 hover:scale-110 active",
@@ -172,7 +172,7 @@ export default function Navbar() {
172172
</Link>
173173
<Link
174174
to="/resource"
175-
className="group transition-all duration-200 hover:scale-110 flex gap-4 text-xl text-highlight-light items-center"
175+
className="group transition-all duration-200 hover:scale-110 flex gap-4 text-xl text-highlight-light items-center w-52"
176176
activeProps={{
177177
className:
178178
"group transition-all duration-200 hover:scale-110 active",
@@ -188,7 +188,7 @@ export default function Navbar() {
188188
</Link>
189189
<Link
190190
to="/profile"
191-
className="group transition-all duration-200 hover:scale-110 flex gap-4 text-xl text-highlight-light items-center"
191+
className="group transition-all duration-200 hover:scale-110 flex gap-4 text-xl text-highlight-light items-center w-52"
192192
activeProps={{
193193
className:
194194
"group transition-all duration-200 hover:scale-110 active",

0 commit comments

Comments
 (0)