Skip to content

Make full-width images span the entire viewport on non-sidebar pages#1233

Open
matthewrball wants to merge 1 commit into
BitcoinDesign:masterfrom
matthewrball:fix/full-width-header-images
Open

Make full-width images span the entire viewport on non-sidebar pages#1233
matthewrball wants to merge 1 commit into
BitcoinDesign:masterfrom
matthewrball:fix/full-width-header-images

Conversation

@matthewrball
Copy link
Copy Markdown
Contributor

Summary

  • On pages without a sidebar (social-media, newsletter, calendar, join, projects, community, collabs), full-width images were constrained to the .main container's max-width: 1280px, leaving gaps on both sides
  • This breaks .-full-width elements out to the full viewport width using width: 100vw and calc(-50vw + 50%) margins
  • Images maintain a consistent height via max-height with object-fit: cover for natural cropping
  • Adds overflow-x: hidden on body to prevent horizontal scrollbar from the 100vw technique
  • Sidebar guide pages are completely unaffected — they keep existing behavior

Pages affected: /social-media/, /newsletter/, /calendar/, /join/, /projects/, /community/, /collabs/

Test plan

  • Check each affected page above at desktop width — images should span edge-to-edge
  • Check at tablet/mobile — no change from current behavior (existing negative margins handle it)
  • Check a guide page with sidebar (e.g. /guide/glossary/address/) — should be unchanged
  • Verify no horizontal scrollbar appears on any page
  • Verify figcaptions (e.g. "Illustration via Control" on /calendar/) are still visible below images

@netlify
Copy link
Copy Markdown

netlify Bot commented May 21, 2026

Deploy Preview for bitcoin-design-site ready!

Name Link
🔨 Latest commit 371f71f
🔍 Latest deploy log https://app.netlify.com/projects/bitcoin-design-site/deploys/6a0e5f742f874c0008e6e710
😎 Deploy Preview https://deploy-preview-1233--bitcoin-design-site.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

On pages without a sidebar, full-width images were constrained to
the .main container max-width (1280px). This breaks them out to the
full viewport width using calc(-50vw + 50%) margins, with object-fit
cover and a consistent max-height to keep all banner images uniform.

Sidebar guide pages are unaffected — they keep existing behavior.
@matthewrball matthewrball force-pushed the fix/full-width-header-images branch from 6751519 to 371f71f Compare May 21, 2026 01:27
@GBKS
Copy link
Copy Markdown
Contributor

GBKS commented May 21, 2026

Thanks for submitting this, but I don't think this is a good change. The header images were designed for a specific size and to be visible without cropping. When they become super wide, they get blurry because the resolution is not high enough, and the cropping can look weird. So I prefer our current approach.

@GBKS GBKS added the Dev Development-focused tasks. label May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dev Development-focused tasks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants