Skip to content

Commit 12abc6f

Browse files
committed
feat: enhance mobile responsiveness with viewport meta tag and CSS adjustments
1 parent 4064199 commit 12abc6f

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed

docusaurus.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ module.exports = {
5454
{name: "twitter:card", content: "summary_large_image"},
5555
],
5656
headTags: [
57+
// Viewport meta tag for mobile responsiveness
58+
{
59+
tagName: "meta",
60+
attributes: {
61+
name: "viewport",
62+
content: "width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes",
63+
},
64+
},
5765
// Preconnect tag
5866
{
5967
tagName: "link",

src/css/custom.css

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,4 +873,71 @@ textarea {
873873
background-color: #e67643 !important;
874874
}
875875

876+
/* Mobile responsiveness fixes */
877+
@media screen and (max-width: 768px) {
878+
* {
879+
max-width: 100vw;
880+
}
881+
882+
html, body {
883+
overflow-x: hidden !important;
884+
width: 100%;
885+
max-width: 100vw;
886+
}
887+
888+
footer, .navbar, article, main, .main-wrapper {
889+
max-width: 100vw !important;
890+
overflow-x: hidden !important;
891+
width: 100% !important;
892+
}
893+
894+
footer {
895+
padding-left: 1rem !important;
896+
padding-right: 1rem !important;
897+
}
898+
899+
.footer__icons {
900+
flex-wrap: wrap !important;
901+
justify-content: center !important;
902+
width: 100% !important;
903+
}
904+
905+
.footer__copyright, .footer__link-item {
906+
width: 100% !important;
907+
text-align: center !important;
908+
}
909+
910+
.DocSearch-Button {
911+
width: 100% !important;
912+
max-width: 200px !important;
913+
}
914+
915+
.navbar__items {
916+
max-width: 100% !important;
917+
}
918+
919+
.navbar__inner {
920+
padding-left: 1rem !important;
921+
padding-right: 1rem !important;
922+
}
923+
924+
img, video, iframe, pre, table {
925+
max-width: 100% !important;
926+
}
927+
}
928+
929+
/* Fix Products section - reduce size on tablet */
930+
@media screen and (min-width: 641px) and (max-width: 1024px) {
931+
ul.grid-flow-col {
932+
grid-auto-columns: 220px !important;
933+
}
934+
}
935+
936+
/* Fix Products section - stack on mobile */
937+
@media screen and (max-width: 640px) {
938+
ul.grid-flow-col {
939+
grid-auto-flow: row !important;
940+
grid-auto-columns: unset !important;
941+
}
942+
}
876943

0 commit comments

Comments
 (0)