getgrav / grav-premium-issues

Official Grav Premium Issues repository to report problems or ask questions regarding the Premium products offered.
https://getgrav.org/premium
7 stars 2 forks source link

[typhoon] Gallery grid columns #431

Closed Mikfr83 closed 2 months ago

Mikfr83 commented 3 months ago

Hello Andy,

Some noob questions :)

I would like to increase the number of columns in the gallery template. I tried these tailwind classes:

But the result is not consistent, it seems impossible to obtain more than 4 columns. It's the same with the features template.

And another query about the gallery ... I need to setup a gallery with images / thumbnails in different size and aspect ratio (portrait & landscape). There is a way to achieve that with the default gallery ?

PS: I duplicated the Typhoon theme, to start a custom one.

Thanks, Michael

rhukster commented 3 months ago

You are probably not recompiling the css to pick up those new classes. There’s a section in the docs that explains how to do it. Scripts are written for you, just need to install the node modules.

Mikfr83 commented 3 months ago

Actually, there is no change in the css on my side.

With the Typhoon theme, in the gallery, the issue appears with a simple tweak of the default settings: pW6wiovMCJ

The result: x8mlwk0XgJ

Or more simple: t8jePBxk6y

Result: N17LItLnsG

rhukster commented 2 months ago

My point is if you add a CSS class (even in the config) that Tailwind has not yet compiled in, it won't be available. All you have to do is to inspect the CSS in your browser's developer tools and see if there's anything in the inspector for that grid-cols-5. I think you'll find nothing in the CSS file for that class.

Just follow the instructions: https://getgrav.org/premium/typhoon/docs#installing-npm-to-compile-css

Mikfr83 commented 2 months ago

Ok, thanks for your answers ! It wasn't clear in my mind, I assumed that all tailwind classes were available by default.