Skip to content

Commit c2b9963

Browse files
forge: mobile pass on the shared chrome (tabs no longer overflow)
The repo tabs (now 7 with Anchors) overflowed horizontally on phones and could force the whole page to scroll sideways. .tabs is now a horizontally-scrollable strip (overflow-x:auto, hidden scrollbar; tabs flex:none/nowrap). Adds the forge's first @media (max-width:640px): tighter container/crumb/tab padding, wrapping topbar, and form inputs that don't blow out the viewport. Viewport meta was already present. Chrome-level pass; per-page wide content (code, diffs) is a follow-up best verified on a device. 131 tests green.
1 parent 394f8cd commit c2b9963

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

forge/plugin.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,10 @@ code,pre,.mono{font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,
408408
.crumb a{color:#0969da}
409409
.badge{display:inline-block;border:1px solid #d0d7de;color:#59636e;border-radius:999px;
410410
padding:0 7px;font-size:12px;font-weight:500;line-height:18px;vertical-align:middle}
411-
.tabs{display:flex;gap:8px;margin-top:12px}
411+
.tabs{display:flex;gap:8px;margin-top:12px;overflow-x:auto;scrollbar-width:none}
412+
.tabs::-webkit-scrollbar{display:none}
412413
.tab{display:inline-flex;align-items:center;gap:6px;padding:8px 14px 10px;color:#1f2328;
413-
border-bottom:2px solid transparent;font-size:14px}
414+
border-bottom:2px solid transparent;font-size:14px;flex:none;white-space:nowrap}
414415
.tab:hover{text-decoration:none;border-bottom-color:#d0d7de}
415416
.tab.active{font-weight:600;border-bottom-color:#fd8c73}
416417
main{padding:24px 0}
@@ -544,6 +545,16 @@ table.marks th{border-top:0;background:#f6f8fa;font-size:12px;color:#59636e;font
544545
table.marks code{font-size:12px;word-break:break-all}
545546
.fundbox{border:1px solid #d4a72c66;background:#fff8c5;border-radius:8px;padding:12px 16px;margin-top:16px}
546547
.fundbox pre{background:#ffffffaa;border-radius:6px;padding:12px;overflow-x:auto;font-size:12px}
548+
@media (max-width:640px){
549+
.container{padding:0 14px}
550+
.crumb{font-size:17px}
551+
.tabs{margin-top:8px}
552+
.tab{padding:8px 10px 10px}
553+
.topbar .container{flex-wrap:wrap;row-gap:6px}
554+
main{padding:16px 0}
555+
.markdown-body{padding:12px 16px}
556+
.issueform input,.issueform textarea{min-width:0}
557+
}
547558
`;
548559

549560
// connect-src 'self' is load-bearing for tier 2: the issues client drives

0 commit comments

Comments
 (0)