Page 1 of 1

[UI improvement] admin subnav padding

Posted: Thu May 18, 2017 2:49 pm
by Franck
In some languages, the link text in admin subnavigation can be very long, and can overflow on the right (see attachment).

My suggestion would be to reduce padding on the following element (+ hover and active states):

Code: Select all

nav ul#oe_pagemenu li.current li a, nav ul#oe_pagemenu li li a, nav ul#oe_pagemenu li:hover li a {
    height: auto;
    line-height: 1.3;
    white-space: pre-line;
    word-break: normal;
    padding: 5px 5px 5px 30px;
    color: #232323;
    font-weight: normal;
    background-image: none;
    background: none;
}
And set padding left to 5px.

What do you think?

Re: [UI improvement] admin subnav padding

Posted: Thu May 18, 2017 3:35 pm
by Rolf
This is my screen with French installed:
ScreenHunter_71 May. 18 17.34.jpg

Re: [UI improvement] admin subnav padding

Posted: Thu May 18, 2017 4:02 pm
by jce76350
my screen standard install
Image

Re: [UI improvement] admin subnav padding

Posted: Thu May 18, 2017 5:19 pm
by Rolf
Thanks for the reply both!

It looks like it is dependent on what font files are installed at the local machine... If font X isn't there, the browser takes font Y...

Anyway, we are to late in the beta process to test and change things here. We will investigate this for 2.3 release, where we have planned to give the Admin theme an overhaul anyway!

Grtz. Rolf

Re: [UI improvement] admin subnav padding

Posted: Thu May 18, 2017 6:39 pm
by Rolf
Just for the record, I reproduced this.

Default admin theme CSS

Code: Select all

body, button, input, select, textarea {
    font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
}
I have Open Sans font file at my laptop. When I rename it in the CSS, the next font is picked by the browser and I get the same result as you...
ScreenHunter_71 May. 18 20.31.jpg
Would probably be better to ship a default font file with the admin theme in 2.3 release...

Re: [UI improvement] admin subnav padding

Posted: Thu May 18, 2017 7:32 pm
by Franck
Rolf wrote: Would probably be better to ship a default font file with the admin theme in 2.3 release...
Definitely, yes.

Re: [UI improvement] admin subnav padding

Posted: Sun May 21, 2017 7:39 am
by jce76350
wait and see ;)