Page 1 of 1

List menu adjustments

Posted: 17 Oct 2024, 17:39
by Mibu
Hi

(1) I would like to hide the description (but keep the title) of the list menu preview image (shown right of the menu).
(2) How can I change the size (and ratio) of the square list menu preview image (e.g. keep original image ratio)?

Is the a Custom CSS code for that?

Thank you
Michael

Re: List menu adjustments

Posted: 17 Oct 2024, 22:25
by mjau-mjau
Mibu wrote:(1) I would like to hide the description (but keep the title) of the list menu preview image (shown right of the menu).
Settings > Custom > Custom CSS:
Code
.mega-preview-description {
    display: none;
}
Mibu wrote:(2) How can I change the size (and ratio) of the square list menu preview image (e.g. keep original image ratio)?
You won't be able to keep the original ratio. That would mean that images of different aspect would force the menu to change size when they load into location at different heights. The aspect is locked to "square", because this suits the general size of the "list" mega menu, which isn't very flexible.

Re: List menu adjustments

Posted: 18 Oct 2024, 03:04
by Mibu
Settings > Custom > Custom CSS:
Code Select all
Code
.mega-preview-description {
    display: none;
}
That worked perfectly. Thank you.

If it's not possible to change the ratio, is it possible to change the size of the square image (slightly)?
Also, displaying this image: Is it an all or nothing option. So I can either always display it or always hide it, but not configure this per menu entry (hiding it for private galleries and showing it for public ones)?

Re: List menu adjustments

Posted: 18 Oct 2024, 06:56
by mjau-mjau
Mibu wrote:If it's not possible to change the ratio, is it possible to change the size of the square image (slightly)?
Change size in what way though? Set another ratio like 2:3 or 3:2? You might be able to hack it via CSS, but it would still load a square image, but it could be set to "cover" inside a limited ratio area.
Mibu wrote:Also, displaying this image: Is it an all or nothing option. So I can either always display it or always hide it, but not configure this per menu entry (hiding it for private galleries and showing it for public ones)?
This seems very clumsy to me. The list menu can be quite intuitive and useful, but it's also very much pre-designed to suit this format. What is supposed to happen then when user hovers a folder that should not display an image? It can't just remove the entire image section temporarily. Why not just add a custom preview image "preview.jpg" into the password-protected folders then, that just displays an image that is acceptable to display public? You are after all trying to prevent everyone from being able to see a preview image of password-protected folders, including those that have the password. This would also be a requirement for the parent page of the folders, where they would list with thumbnails.

Re: List menu adjustments

Posted: 18 Oct 2024, 07:11
by Mibu
Thank you, all good. I'll find a workaround. I also had in mind to display a kind of default picture in these cases.