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 {
10181018 }
10191019 }
10201020
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+
10211032 .tab {
10221033 padding: 8px 12px;
10231034 margin-bottom: 0;