CMS Made Simple Forums
https://forum.cmsmadesimple.org/

[UI improvement] admin subnav padding
https://forum.cmsmadesimple.org/viewtopic.php?f=89&t=76616
Page 1 of 1

Author:  Tomek [ Thu May 18, 2017 2:49 pm ]
Post subject:  [UI improvement] admin subnav padding

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):
\$1:
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?

Attachments:
Capture d'écran 2017-05-18 16.40.34.png
Capture d'écran 2017-05-18 16.40.34.png [ 43.71 KiB | Viewed 2066 times ]

Author:  Rolf [ Thu May 18, 2017 3:35 pm ]
Post subject:  Re: [UI improvement] admin subnav padding

This is my screen with French installed:

$1:
ScreenHunter_71 May. 18 17.34.jpg
ScreenHunter_71 May. 18 17.34.jpg [ 68.05 KiB | Viewed 2055 times ]

Author:  jce76350 [ Thu May 18, 2017 4:02 pm ]
Post subject:  Re: [UI improvement] admin subnav padding

my screen standard install
$1

Author:  Rolf [ Thu May 18, 2017 5:19 pm ]
Post subject:  Re: [UI improvement] admin subnav padding

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

Author:  Rolf [ Thu May 18, 2017 6:39 pm ]
Post subject:  Re: [UI improvement] admin subnav padding

Just for the record, I reproduced this.

Default admin theme CSS
\$1:
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...
$1:
ScreenHunter_71 May. 18 20.31.jpg
ScreenHunter_71 May. 18 20.31.jpg [ 253.81 KiB | Viewed 2011 times ]

Would probably be better to ship a default font file with the admin theme in 2.3 release...

Author:  Tomek [ Thu May 18, 2017 7:32 pm ]
Post subject:  Re: [UI improvement] admin subnav padding

Rolf \Rolf:
Would probably be better to ship a default font file with the admin theme in 2.3 release...

Definitely, yes.

Author:  jce76350 [ Sun May 21, 2017 7:39 am ]
Post subject:  Re: [UI improvement] admin subnav padding

wait and see ;)

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/