Skip to content

Commit b01bf35

Browse files
committed
Fix mobile responsiveness for navigation and list view
- Add flex-wrap to header navigation to prevent overflow on mobile - Reduce button padding and font sizes for mobile nav - Hide GitHub link text on mobile, show icon only - Fix list view layout on mobile by switching to column layout - Allow metadata to wrap properly in mobile list view - Ensure project cards stack vertically in mobile list view These changes ensure the site is fully responsive and usable on mobile devices.
1 parent ab9090b commit b01bf35

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.publish/templates/site/index.html

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@
344344
display: flex;
345345
align-items: center;
346346
gap: 0.5rem;
347+
flex-wrap: wrap;
347348
}
348349

349350
.nav-btn {
@@ -360,6 +361,7 @@
360361
display: flex;
361362
align-items: center;
362363
gap: 0.5rem;
364+
white-space: nowrap;
363365
}
364366

365367
.nav-btn:hover {
@@ -970,6 +972,58 @@
970972
margin-left: auto;
971973
}
972974

975+
/* Mobile responsive fixes for list view */
976+
@media (max-width: 640px) {
977+
.projects-container.list-view .project-card {
978+
flex-direction: column;
979+
align-items: flex-start;
980+
padding: 1rem;
981+
}
982+
983+
.projects-container.list-view .project-header {
984+
width: 100%;
985+
}
986+
987+
.projects-container.list-view .project-title {
988+
font-size: 0.95rem;
989+
}
990+
991+
.projects-container.list-view .project-meta {
992+
flex-wrap: wrap;
993+
width: 100%;
994+
}
995+
996+
.projects-container.list-view .project-actions {
997+
margin-left: 0;
998+
margin-top: 0.5rem;
999+
}
1000+
}
1001+
1002+
/* Mobile navigation responsive fixes */
1003+
@media (max-width: 640px) {
1004+
.header-nav {
1005+
gap: 0.375rem;
1006+
}
1007+
1008+
.nav-btn {
1009+
padding: 0.5rem 0.75rem;
1010+
font-size: 0.85rem;
1011+
}
1012+
1013+
.nav-btn .count {
1014+
font-size: 0.7rem;
1015+
padding: 0.1rem 0.4rem;
1016+
}
1017+
1018+
.github-link span {
1019+
display: none;
1020+
}
1021+
1022+
.github-link {
1023+
padding: 0.5rem;
1024+
}
1025+
}
1026+
9731027
/* Project card */
9741028
.project-card {
9751029
background: var(--bg-card);

0 commit comments

Comments
 (0)