ckan / ckan.org

Source code for the ckan.org website
Other
3 stars 6 forks source link

Add full-width image style layout to blog posts #206

Closed popovayoana closed 1 week ago

popovayoana commented 5 months ago

Description

Our blog currently only supports centered images with large margins on both sides. This layout restriction leads to a less immersive visual experience. We want to enable full-width images in our blog posts (in addition to the current centered one). These images should stretch from edge to edge, without any padding, filling the entire width of the post container.

Details

Full-width style layout

Consideration for Image height:

We need to determine an appropriate height limit for these full-width images to maintain aesthetic balance and ensure they don't dominate the screen space excessively. Potential options include setting a maximum height in pixels or a percentage of the viewport height.

Visual comparison

How it looks now

2024-01-30_19-27-49

How we want the additional layout to look like

full width image

popovayoana commented 5 months ago

@Alex-Pavlyuk @alexmorev hey guys, can you have a look at that and estimate effort needed?

alexmorev commented 5 months ago

@popovayoana OK. I'll do it.

alexmorev commented 4 months ago

@popovayoana It's done. Please test. NOTE. In order to use and display full-width images in articles you should use Post image insertion in the Blog Post admin menu. The maximum height of an image is restricted by 25% from a viewport height.

popovayoana commented 1 week ago

FIXED by @alexmorev.