Confluence search filter box - increase width to enable the reading of long space names

Sometimes you need to limit a Confluence 4.x search to specific space.

But with a lof spaces, names becomes longer :-( than the space list box width.

There is space left, so any ideas who to increase the width?

I'm not a how-to-modify-Confluence-CSS expert %-} , so I would appreciate a detailed how :-)

A-M

2 answers

Hi there,

In order to make it looks neat, I recommend increasing the width of the whole search bar rather than just increasing the width of your "All Spaces" field.

Please try the following steps and see if it helps:

  1. Access Confluence Adminsitrator Page
  2. Under the "Look & Feel" section navigate to "stylesheet" menu
  3. Click "Edit" and input the following value
  4. #search-sidebar {width:300px !important;}
  5. Saved

Now your whole search bar should be wider to facilitate the long space name. Please modify the px (pixel) parameter appropriately as you preferred.

Please do let me know if you need to modify only the space name, there might be some trick that might help you achieve it.

Hope it helps.

Cheers,
Septa Cahyadiputra

EDITED:

I have double check with a long name and apparently the above CSS won't help as it will only made the bar wider but the name itself is still limited from the source code.

Here is the list of improvement request regarding this issue:

https://jira.atlassian.com/browse/CONF-16270

https://jira.atlassian.com/browse/CONF-15777

Hi,

On top of Septa's Answer, as you know Confluence will only limit the Space name to 20 character, in search filter panel. Despite you increase the CSS, it will just show ellipsis instead of the full name of Space.

We've found the cause of this issue in <tt>SpacePickerHelper.java</tt>, in <tt>com.atlassian.confluence.search</tt>. The variable is only defined as 20, which is very less.

If you know how to edit the source code, you could try and change the following variable to maybe 50, and compile Confluence source.

private static final int MAX_SPACE_NAME_LENGTH = 20;

Hope this helps

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published 14 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

99 views 2 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you