Hello Community,
Termin has made a modification of core.css which adds icons to the admin and the plugin menu: http://www.pixelcom.crimea.ua/css-core- ... le_xh.html.
We had some discussion regarding this topic when we discussed making the admin menu adaptable to the available viewport width.
We should reconsider this topic for XH 1.6.4.
Christoph
XH 1.6.4: Icons for the admin and plugin menu
XH 1.6.4: Icons for the admin and plugin menu
Christoph M. Becker – Plugins for CMSimple_XH
Re: XH 1.6.4: Icons for the admin and plugin menu
Maybe it could be implemented this way: as long as there is enough space, the menu remains as we have it now, but when there isn't enough space any more, icons will be shown instead of text.
Re: XH 1.6.4: Icons for the admin and plugin menu
Can this be done with CSS? Otherwise it would require JS, what might be overkill.svasti wrote:Maybe it could be implemented this way: as long as there is enough space, the menu remains as we have it now, but when there isn't enough space any more, icons will be shown instead of text.
Christoph M. Becker – Plugins for CMSimple_XH
Re: XH 1.6.4: Icons for the admin and plugin menu
There is a case which I encountered several times in templates where the menu is on top of everything. When the viewport gets smaller, items of the admin menu are getting on top of the page menu, making it impossible to reach certain pages.
Such templates XH cannot be administered from smartphones etc. If one could swith to icons, administration would be posible again.
Such templates XH cannot be administered from smartphones etc. If one could swith to icons, administration would be posible again.
I don't see a way to do it. We could add a config variable, or a little java script, e.g. if viewport has less than 800px icons are shown? However as you don't like adding config vars nor java script, how would you do it?cmb wrote:Can this be done with CSS?
Re: XH 1.6.4: Icons for the admin and plugin menu
Actually, I'd call that a bug. The admin menu reserves a certain amount of space for itself by setting html {margin-top: Npx}, where N is calculated in PHP by catering for whether the "debug mode is on" message is shown or not. This worked fine until we made the admin menu responsive (apparently, I didn't notice the misbehavior while implementing that). I would suggest to fix this bug, what requires some JS. While we'd be at it, we could have as well moved the calculation and setting of the initial margin-top to JS as well -- what would have enabled the possibility to change the height of the menu bar in core.css.svasti wrote:There is a case which I encountered several times in templates where the menu is on top of everything. When the viewport gets smaller, items of the admin menu are getting on top of the page menu, making it impossible to reach certain pages.
However, the voting has been ended, and it had been decided to implement an icon solution.
I wouldn't introduce a config option to solve the issue pointed out above, because a user may normally administrate the site with their desktop browser, but occassionally with their mobile browser, so they would have to change the configuration each time. And the admin might even want to quickly test the look of the responsive site by resizing the browser window, or by using a tool such as the web developer toolbar's "View responsive layouts". IMO a JS solution would be overkill for a purely visual improvement, but of course it's fine to fix a real problem.svasti wrote:We could add a config variable, or a little java script, e.g. if viewport has less than 800px icons are shown? However as you don't like adding config vars nor java script, how would you do it?
Anyhow, whatever solution will be implemented, any necessary JS could be added to XH.adaptAdminMenu().
Christoph M. Becker – Plugins for CMSimple_XH