forge
Explore
Log in

Don't you dare go Hollow

The repo tab strip runs to the screen edge on phones and scrolls inside itself

Browse files at this commit

3d093a61099f158546a09892c27224d88326b15aAhmet Kaan GümüşParent: 420b0e0
  • fix
    • the repo tab strip runs to the screen edge on phones and scrolls inside itself
Show full message
🐛 fix: the repo tab strip runs to the screen edge on phones and scrolls inside itself
style/main.scssmodified+11 -0
@@ -1018,6 +1018,17 @@ code {
1018 }1018 }
1019 }1019 }
1020 1020
1021+// Below the sidebar breakpoint the strip runs to the screen edges and scrolls inside itself. The
1022+// first tab still starts on the 16px gutter, and the page never scrolls sideways.
1023+@media (max-width: 899px) {
1024+ .repo-tabs {
1025+ margin-left: -16px;
1026+ margin-right: -16px;
1027+ padding: 0 16px;
1028+ scroll-padding: 0 16px;
1029+ }
1030+}
1031+
1021 .tab {1032 .tab {
1022 padding: 8px 12px;1033 padding: 8px 12px;
1023 margin-bottom: 0;1034 margin-bottom: 0;