|
Meta tags:
description=Summary
Fixes #472 - Code blocks with very long lines now scroll horizontally instead of expanding the entire page width, which was causing the navigation menu to become excessively narrow.
Problem
Code blocks containing long lines (e.g., lengthy git commands or URLs) were expanding beyond the content area, causing:
Navigation menu to be squeezed into a very narrow column
Poor rendering on mobile screens
Horizontal scrolling required for the entire page
This was particularly noticeable in Rev News editions 66 and 68.
Solution
Modified CSS for pre and pre.sh_sourceCode elements to:
Changed white-space: pre-wrap to white-space: pre (prevents line wrapping)
Added overflow-x: auto (enables horizontal scrolling within code blocks only)
Added max-width: 100% (constrains code blocks to content width)
Key Improvements Over Previous Attempt (#668)
✅ No font size changes - readability maintained across all screen sizes
✅ Only affects code blocks - no impact on other page elements
✅ Minimal, focused CSS changes (6 lines added/modified)
✅ Works seamlessly on desktop and mobile devices
Files Changed
css/main.css - Updated code block styling (7 lines modified);
Headings (most frequently used words):
navigation, menu, to, uh, oh, fix, code, block, width, overflow, causing, shrink, 472, 816, are, footer, you, diff, view, repository, there, no, files, selected, for, viewing, sure, want, change, the, base, filter, by, extension,
Text of the page (most frequently used words):
#github (18), and (16), this (11), applied (11), the (11), code (11), file (11), you (9), for (9), line (8), all (8), reload (8), loading (8), suggestion (7), cannot (7), suggestions (7), width (7), sign (7), navigation (6), while (6), that (5), not (5), security (5), from (5), commit (5), changes (5), overflow (5), pre (5), border (5), block (5), show (5), open (5), 472 (5), base (5), git (5), your (5), can (4), please (4), pull (4), comments (4), change (4), expand (4), radius (4), 3px (4), diff (4), css (4), there (4), files (4), load (4), commits (4), fix (4), menu (4), support (4), copilot (4), community (3), request (3), add (3), batch (3), white (3), space (3), hidden (3), characters (3), unicode (3), may (3), review (3), learn (3), about (3), view (3), whitespace (3), was (3), error (3), page (3), filter (3), 816 (3), causing (3), shrink (3), issue (3), dhanashreepetare (3), branch (3), refname (3), account (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), build (3), contact (2), status (2), privacy (2), terms (2), footer (2), 2026 (2), merge (2), outdated (2), single (2), one (2), viewing (2), toggle (2), down (2), max (2), 100 (2), auto (2), height (2), 18px (2), font (2), 13px (2), 15px (2), 815 (2), number (2), bidirectional (2), what (2), more (2), are (2), selected (2), apply (2), hide (2), split (2), unified (2), failed (2), retry (2), jump (2), extension (2), old (2), default (2), could (2), tags (2), branches (2), master (2), insights (2), projects (2), actions (2), repository (2), signed (2), with (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), business (2), fixes (2), products (2), secret (2), perform, action, time, share, personal, information, manage, cookies, docs, inc, right, now, check, back, later, queued, multi, pending, reviews, has, been, marked, resolved, must, existing, order, create, valid, applying, deleted, lines, supported, only, per, subset, closed, invalid, because, were, made, annotations, notes, family, courier, monospace, important, size, 1376, 1378, sh_sourcecode, solid, 1px, efeee6, background, color, fff, padding, 10px, display, wrap, moz, original, contains, text, interpreted, compiled, differently, than, appears, below, editor, reveals, desktop, delete, edit, main, additions, deletion, conversations, clear, filters, viewed, type, nbsp, jan, constrain, enable, horizontal, scrolling, a8193bd, select, changed, checks, conversation, wants, into, codeblock, some, removed, timeline, become, sure, want, nothing, found, choose, already, clicking, agree, our, occasionally, send, related, emails, statement, service, free, its, maintainers, have, question, project, new, items, wiki, requests, issues, message, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, event, talks, workshops, next, partners, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, ons, trust, why, evaluate, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, latest, improvements, across, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, automated, work, hosting, collaboration, platform, skip, content,
|