Karl carloscosta hi... how can i hide or remove the button - open in new window? There should perhaps be better options for this, but you can add to custom CSS _files/css/custom.css: [data-lang="open in new tab"] { display: none; }
adom Karl this method to only hide the name but the button is work.. how can disabled it to can't work this button?
Karl adom It depends on exactly what button you are targeting, and these things might change. I will probably need to include better methods for hiding buttons. For now, you could do something like this: a.dropdown-item[target="_blank"] { display: none; }
Karl fabiosistemi Would it be possible to hide "open in new tab" for folders only? Some modern CSS could solve that: :where(.cm-sidebar, .cm-files:has([data-action="folder"])) .dropdown-item[target="_blank"] { display: none; }
fabiosistemi I tested the CSS code and saw that on the "CEF 89.0.15 Chromium 89.0.4389.90" Browser I'm using, it doesn't work. Your browser probably ignores this CSS change. If I try with another browser it works perfectly. Do you know if I can achieve the same thing using other CSS parameters?
Karl fabiosistemi I don't know why you are using such an old version of Chrome 89 when current version is 123. Files Gallery already is made for modern browsers, and the CSS solution I offered is to be able to detect that an element has specific elements inside. Support is already 93.96%. https://caniuse.com/mdn-css_selectors_where It's certainly the best solution, although you could try the sibling selector: .cm-sidebar .dropdown-item[target="_blank"], .dropdown-item[data-action="folder"] ~ .dropdown-item[target="_blank"] { display: none; }
fabiosistemi Karl Thank you very much for the support. Now it works correctly. I am using this version because it is the most recent version that the software https://www.exeoutput.com/ allows you to use. Thanks again for the great support.