SideBar Adjust Size / Width

Hi,

Our project names are quite long, and we can’t see the projects in the sidebar.

Is there any way to adjust the sidebar?

Ideally, it would be awesome to drag it left to right and adjust as necessary.

As a quick fix - is there a way you can modify the pages source code / html in our browser to modify the width of the side bar?

Sam

2 Likes

For anyone who searches and finds this topic, I solved the solution by doing the following:

  1. Download “User CSS” Google Chrome Extension
  2. Open Any Asana page
  3. Right click / inspect (in chrome)
  4. Copy and paste CSS code into the extension USER CSS
  5. Search for any 244px and replace with 400px (or any size that you need to get a wider sidebar)
  6. Turn On
12 Likes

Thanks Sam - I took your example and expanded slightly. I wanted wider “pills” as the custom field dropdowns. I changed to this:

/* Widen task list custom field columns (type: Drop-down). */
.CustomPropertyHeader–editable .CustomPropertyHeader-fieldHeading–enum {
width: 100px;
}
.CustomPropertyEnumEditablePreviewCell {
width: 120px;
}

It seems like the second has to be approximately 20px wider than the first. This was a huge help - my dropdowns were a little wordier and all cut off. Was banging my head on this one …

THANKS!

Hello, is this trick still working for anyone? I can’t seem to find the “244” value in the solution post. Thank you in advance! This would be a welcome visual change.

Pasting the following into User CSS did the trick for me:

.AsanaMain-sidebar {
display: flex;
flex: 0 0 auto;
flex-direction: column;
transition: margin-left 250ms ease-out,transform 250ms ease-out;
width: 400px !important;
}

1 Like

Thanks @Ken6 . @JohnnyHuynh, something like that just worked for me in MS Edge:
inspect page html (Ctrl+Shift_I)
find “.AsanaMain-sidebar”
replace width 244 with 320 or whatever
Of course, it would be much better if the sidebar was just re-sizeable by click and drag.

2 Likes

Thank you - that worked for me!

Any Solution For Mozila Firefox ?

Yes, you can use Stylus! It’s a :trophy: recommended extension for Firefox Stylus – Get this Extension for 🦊 Firefox (en-US)

This is the style that I use:

#asana_sidebar {
    width: 300px;  /* You can customize this value, the default is 240px. */
}
#asana_sidebar.AsanaMain-sidebar--isCollapsed {
    width: 240px;  /* Don't customize this. */
}
2 Likes

Hi

I came across this post after having the same issue. I used the CSS code that was provided in the comments below, but wanted to know how can you permanently set this? When I refreshed the page, it went back to the old coding.

Hi @Almier_McCoy,
welcome to the Asana Forum!

Did you use Stylus or did you inserted the CSS in the Style Editor tab in the browser? In the second case the changes can’t survive a page refresh. The Stylus plugin is the way to save them permanently.

Please make the sidebar in the browser view adjustable in the same manner as the columns.

Hovering your cursor over a partial project name is not an acceptable workaround.

Thank you.

7 Likes

Agreed I’m surprised this isn’t an official feature request… or is it? I find it so strange I can’t have all my users just drag the width of the pane like they can the columns.

2 Likes

I have a workaround using bookmarklets for people who don’t want to install an extension. To use, drag the link below to your bookmark bar, then navigate to an Asana page and click it. It will change the styling in your currently open page.

Visit this page to try it out: Asana bookmarklets | asana-bookmarklets

Code:
Toggle sidebar expansion to 480px:

javascript:(function(){ var desiredWidth = '480px'; if (document.querySelector('.AsanaMain-sidebar').style.width != desiredWidth){document.querySelector('.AsanaMain-sidebar').style.width=desiredWidth}else{document.querySelector('.AsanaMain-sidebar').style.width='240px'}})();

Kudos to ShunS for the Bookmarklet idea.

4 Likes

Thank you, Ian! This is AMAZING and is going to make a lot of people in my org very happy! Kudos!!! :beers:

How about for the desktop app?
I mean the functionality is clearly there because you can do it with the Dev Tools (click and drag the divider).
I’m surprised that this is not built in. Any advice or updates on this?

2 Likes

This used to be the perfect solution - But as of today this code no longer works for me. Does it still work for anyone else?

Not working for me : (