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

1 Like

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
11 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.

1 Like