Large

Google Reader Sanity

By cqrt Last update Jan 22, 2013 — Installed 35,374 times.

Setting the width of Navbar

in
Subscribe to Setting the width of Navbar 11 posts, 3 voices



shmyh User
FirefoxWindows

Hello!
I'm a huge fan of Google Reader Sanity.
Can you show me how to narrow down the width of navigation sidebar?
I try editting the section of #nav { width: 270px !important;} to 220px.
But it didn't work good.
Thank you.

 
cqrt Script's Author
ChromeWindows

Hi, you need to also adjust the child elements:

#nav, #logo-container, #lhn-add-subscription-section, #scrollable-sections-top-shadow, #scrollable-sections-bottom-shadow { width: 220px !important; }

This will of course start to hide your unread post counts, so you need to also adjust the label max widths:

.folder .folder .name-text #reading-list-selector .label { max-width: 120px !important; }

 
shmyh User
FirefoxWindows

Thank you cqrt!

I tried that but had a little problem like the image.
http://postimage.org/image/byspsrux5/
What do I need to fix this?
Sorry for my bad english and don't mind about re***ca's vids :)

 
cqrt Script's Author
ChromeWindows

Doh, sorry my bad, wasn't concentrating, also:

#chrome { margin-left: 220px !important; }

 
shmyh User
FirefoxWindows

It worked perfectly.
Thank you!

 
mr.king.midas User
FirefoxWindows

Hello!
This solution does not work in fullscreen mode.
"Normal" mode: http://postimage.org/image/4is2l5xo1/
"FullScreen" mode: http://postimage.org/image/kiaq4ptpt/
Can you please tell how to fix it?

 
cqrt Script's Author
ChromeWindows

Hiya, sorry for late reply, was away from PC. It's only happening because of my reckless use of !important ;). Just remove it.

#chrome { margin-left: 220px; }

I need to break the bad habit :)

Cheers

(i'll see if I can find a solution to the 'subscribe' button clipping on thinner nav style, time willing.)

 
cqrt Script's Author
ChromeWindows

Just wanted to add, this is quick and dirty code using pixel width instead of percentages that isn't designed to scale gracefully. A new feature coming in version 4.0, setting nav section width from the Config Box, and all elements will gracefully resize regardless of nav width.

 
mr.king.midas User
FirefoxWindows

Thank you cqrt!
But removing "!important" break "normal" mode:
Normal: http://postimage.org/image/4kgw86crl/
FullScreen: http://postimage.org/image/ckjm5ofwr/

 
cqrt Script's Author
ChromeWindows

I see you're using Stylish which is loading the custom code first and Google Reader code is cancelling it out, so we need the !important in this case, but we will make the margin that houses the nav section adjust 'auto' matically with the below code.

Try...

#chrome { margin-left: auto !important; }

Look out for a new version which will cancel your need for stylish script. :)

 
mr.king.midas User
FirefoxWindows

Thank you!
Now all works!