kilian about layouts is not posible disable the click and only open the dropdown for choose layout? would be perfect.
The click
functionality on the layout button is different for mobile (touch) vs desktop (mouse hover), because on mobile the click will toggle the dropdown ...so on mobile the layout would never change on click anyway. For desktop, I can only imagine a Javascript "hack" that blocks click
on the layout button if device is desktop/hover. It would have to be tested.
I might add Javascript config options in the future to select available layouts, but this is not currently available.
kilian can you help me for inject custom links in the sidebar before files?
We can try, but you might need to add some custom CSS also to add margins, padding and color. Your custom menu items won't inherit the styles applied to the actual menu items, because we need to add your custom links outside the actual menu container, else clicks will be hi-jacked by the app which thinks you are clicking a folder.
First of all, add add a file _files/js/custom.js
(see javascript config).
window.addEventListener('DOMContentLoaded', (e) => {
let sidebar_menu = document.getElementById('sidebar-menu');
let timer = setInterval(() => { // wait for menu to load before injecting
if(!sidebar_menu.firstElementChild) return;
clearInterval(timer);
sidebar_menu.insertAdjacentHTML('afterbegin', `<div class="custom-sidebar-links"><a href="https://www.files.gallery/" class="custom-sidebar-link">link1</a><a href="https://www.photo.gallery/" class="custom-sidebar-link">link2</a></div>`);
}, 500);
});
I think it should work. Then you can use .custom-sidebar-links
(container) and .custom-sidebar-link
to style the links with color, margin etc.