question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Single Pages: Hero images leave much whitespace

See original GitHub issue

Current Behavior

Hero images on single page entries across many of the collections (like blog posts, events, resources, news, and so on), don’t fill the space afforded to the image, but instead leave a smaller image with extra, unused whitespace.

The current CSS with object-fit: contain; should work, but seems to not be having the desired affect given conflicting(?) CSS.

Desired Behavior

It would be nice to have the images fill the empty space.

Screenshots / Mockups

example: https://layer5.io/community/events/hacktoberfest-prep-easing-into-cncf-open-source-projects

Screen Shot 2022-09-30 at 12 21 47 PM

Contributor Resources and Handbook

The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the master branch.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:20 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
AbhishekTiwari23commented, Oct 16, 2022

The change shouldn’t be limited to this page only. But, in general to the single blog,event pages

clarifying more on his words, @AbhishekTiwari23 have you checked other blog / event pages ?

Oh, now I understand the real issue, please give me a little time, I will respond as early as possible.

0reactions
Nikhil-Ladhacommented, Oct 22, 2022

Please create a PR with the changes, so that it is easier to confirm the changes work fine for all the pages.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to remove white space from single page's hero ...
Hi there,. The space you see is a combination of margin and padding assigned to the #page element the padding added to the...
Read more >
Hero Image has white space left and right? First time coding
I've added a hero image but I'm getting white gaps appear down the side. It doesn't appear to be padding as the text...
Read more >
White space top/bottom of Hero Image
I'm creating a new page and used one of the Page Builder pre-built layouts that include the hero image widget. I've used the...
Read more >
Why do modern pages leave so much white space?
It seems like the section contains three columns and the third one is empty. Have You tried to switch the layout option from...
Read more >
How to Select Hero Images that Boost Conversions and ...
I'm going to show you how you can select the right kind of hero image to grab attention, convert users and complement your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found