Quelle version de Discourse prend en charge ce thème ?
Je suis toujours sur la version 1.9.0.beta4 et ce thème ne fonctionne pas en raison des API (version non prise en charge) :
Si votre intention est que ce thème ne fonctionne qu’à partir de la version 1.9.0.beta5 et au-delà, veuillez ajouter cette information dans le premier message.
D’ailleurs, modifier le script de version='0.8.9' à version='0.8' fonctionne, du moins sur la beta 4.
Bonjour @angus, j’ai découvert que mon forum ne se charge pas sur Internet Explorer (cela fonctionne avec Firefox, Chrome, Opera et Edge).
Après de nombreuses reconstructions, j’ai constaté que le problème semble provenir de ce thème.
Lorsque je le désactive de mon thème par défaut, le forum se charge normalement.
It’s not possible to use settings in a theme, so you will need to apply css via the site customizer or fork the theme. It should be doable with css. I can take a look at what css would be required on Sunday, unless you want to take a look sooner.
@angus, l’icône de recherche est visible lorsque vous ouvrez le site (même si elle ne fonctionne pas) et disparaît lorsque vous ouvrez un sujet ou cliquez sur la barre de recherche dans l’en-tête.
Il me semble que cela s’est également produit dans le plugin et que vous aviez déjà apporté une correction.
If you have the header search bar up and slowly shrink the width of the browser, there will come a point where the hamburger menu is moved above the user avatar if the search bar is aligned right:
The theme automatically hides the search bar when the header becomes too small to contain it + the logo + the right icons. I had to increase the absolute width of the search bar to properly handle right alignment which threw that calculation off. The search bar should now disappear and the search icon re-appear in that scenario.
I’ve tweaked the size calculation logic here so that you can arbitrarily set the width of the header-search using css and the show hide behaviour will respond accordingly. This helps those with wide site logos.
The default width of the search-header contains, which holds both the search input and the contextual search options, is 600px.
This was an issue for sites with wide logos, as there wasn’t enough space to fit the element comfortably (particularly with the sign up / login buttons on the right).
When in a topic, scrolling down until the search icon appears, clicking it and scrolling back up will make it so that there are two search bars on the screen at the same time. (Some times there’s a delay before the header search bar appears)
I think I did that part of that intentionally, the idea being that if you have one search open already, it would be jarring to have the search input suddenly jump to the header if you happened to scroll up. But it seems to be working imperfectly. I’ll take a look tomorrow.