Skip to content

fix(css):center images#3583

Open
jvoisin wants to merge 1 commit into
miniflux:mainfrom
jvoisin:centerpix
Open

fix(css):center images#3583
jvoisin wants to merge 1 commit into
miniflux:mainfrom
jvoisin:centerpix

Conversation

@jvoisin

@jvoisin jvoisin commented Jul 30, 2025

Copy link
Copy Markdown
Collaborator

Before:

image

After:

image

@fguillot fguillot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more a matter of personal preference. It's probably best to include it in your custom stylesheet.

@jvoisin

jvoisin commented Aug 1, 2025

Copy link
Copy Markdown
Collaborator Author

Is it? I can't think of a single website with left-aligned pictures :/

@Hyask

Hyask commented Aug 5, 2025

Copy link
Copy Markdown

As a long time Miniflux user, I indeed always wondered why the pictures wouldn't be centered.

@magne4000

Copy link
Copy Markdown

I would also expect images to be centered by default, it looks cleaner.

@fguillot

fguillot commented Aug 6, 2025

Copy link
Copy Markdown
Member

Everything in Miniflux is left-aligned: entry images, the HTML5 media player, YouTube videos, image attachments, form settings, and so on.

I get complaints every single time something changes in the web UI :)

If I merge this PR, someone will inevitably complain that the images in the article body are no longer aligned with those in the enclosure list.

@jvoisin

jvoisin commented Aug 6, 2025

Copy link
Copy Markdown
Collaborator Author

Fair, but this isn't really about the UI, and more about the content :P

Happy to send a bigger pull-request to make all the feed content centered :)

@fguillot

Copy link
Copy Markdown
Member

This pull-request also changes every image into a block-level centered element which breaks inline images in the article.

Original:

image

Your changes:

image

@jvoisin

jvoisin commented Mar 20, 2026

Copy link
Copy Markdown
Collaborator Author

Adding display: block; and margin: auto; to figure as well should fix this, good catch :)

@mtsz-pl

mtsz-pl commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

looks like now figcaption is not aligned and looks off

@jvoisin

jvoisin commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator Author

Should be better now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants