Skip to content

Commit 4aaf266

Browse files
committed
fix(feed): force mobile layout via runtime class and width overrides
1 parent 5be6340 commit 4aaf266

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

src/pages/blog/feed.astro

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,8 +759,19 @@ const firstLetters = (value: string) =>
759759
}
760760

761761
@media (max-width: 820px) {
762+
:global(main) {
763+
max-width: 100% !important;
764+
width: 100% !important;
765+
margin: 0 !important;
766+
padding: 0 !important;
767+
}
768+
762769
.feed-shell {
763770
grid-template-columns: 1fr !important;
771+
width: 100% !important;
772+
max-width: 100% !important;
773+
margin: 0 !important;
774+
gap: 0 !important;
764775
}
765776

766777
.left-rail,
@@ -1032,7 +1043,19 @@ const firstLetters = (value: string) =>
10321043
}
10331044
}
10341045
/* Hard override via runtime class (for stubborn mobile browsers/cache) */
1035-
:global(html.force-mobile-ui) .feed-shell { grid-template-columns: 1fr !important; }
1046+
:global(html.force-mobile-ui) main {
1047+
max-width: 100% !important;
1048+
width: 100% !important;
1049+
margin: 0 !important;
1050+
padding: 0 !important;
1051+
}
1052+
:global(html.force-mobile-ui) .feed-shell {
1053+
grid-template-columns: 1fr !important;
1054+
width: 100% !important;
1055+
max-width: 100% !important;
1056+
margin: 0 !important;
1057+
gap: 0 !important;
1058+
}
10361059
:global(html.force-mobile-ui) .left-rail,
10371060
:global(html.force-mobile-ui) .right-rail,
10381061
:global(html.force-mobile-ui) .feed-topbar { display: none !important; }

0 commit comments

Comments
 (0)