Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cover image in single posts misalined #366

Open
schneekluth opened this issue Feb 25, 2022 · 0 comments
Open

Cover image in single posts misalined #366

schneekluth opened this issue Feb 25, 2022 · 0 comments

Comments

@schneekluth
Copy link

schneekluth commented Feb 25, 2022

I am currently migrating my blog to this template and have encountered a strange issue with cover images for single posts. This issue only occurs on large screens. Mobile view is fine:

Sometimes cover images are placed centered but bigger than the textarea:
grafik

Sometimes cover images are placed to the left and the css for border-radius: 8px isn't applied to the right side of the image:
grafik

Reason seems to be the CSS class "post-cover" and specifically the settings for margin: and width:. When I disable these settings everything seems to be correct:
Screenshot 2022-02-25 at 14 31 19

Am I doing something wrong with the cover images? Here is an example how I integrate them:

---
title: "Phoniebox - DIY NFC Audioplayer"
date: 2022-02-20T16:51:44+01:00
slug: "/phoniebox"
series: [diy]
categories: [raspberrypi]
tags: [nfc]
cover: "images/phoniebox/banner-phoniebox.png"
description: "Dieser Post behandelt den Bau einer sogenannten Phoniebox - einem NFC-Audioplayer mit kinderleichter Bedienung."
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant