Page 1 of 1

[Solved] Changing the width of the Artist column

PostPosted: Tue Jun 07, 2011 9:54 pm
by Citrixfr
Hello,

I wonder how to enlarge the list on the left. I'd like to see the entire names.
I tried to find out the CSS but... I didn't -_-

Thanks for help :)


Image

PostPosted: Wed Jun 08, 2011 2:29 pm
by Kirk
I don't suspect that will be extremely easy to do. You will probably need to modify the source code inside the Jar file or something in order to make that type of change to Subsonic.

-Kirk

PostPosted: Wed Jun 08, 2011 2:50 pm
by Citrixfr
I'll keep looking, there must be a way. The hardest is to find out the correct file to edit :(

PostPosted: Wed Jun 08, 2011 6:35 pm
by supra92
Hi Citrixfr,

Changing the width of the Artist column on the left does indeed require modifying the JSP code, but thankfully it's not that involved a process.

First, stop Subsonic.

The file you'll want to edit is: $SUBSONIC_HOME/WEB-INF/jsp/index.jsp

Your Subsonic home will vary depending on your OS and installation type (standalone jetty, tomcat WAR, etc.) My tomcat6-based Subsonic home is located at: /usr/share/tomcat6/webapps/subsonic/

Edit the index.jsp file and look for the following line:

Code: Select all
<frameset cols="15%,85%" border="0" framespacing="0" frameborder="0">


The 15% is the width of the left artist column, while the 85% is the width of the main area -- together they should add up to 100%. You can modify those however you want, ie changing them to 30%, 70% for example. You could also go with a fixed-width if that is more to your liking, by specifying a pixel width for the artist column and then * for the main column (so that it takes up whatever else is left).

Start Subsonic back up, and you should be off to the races.

Regards,
Supra92

PostPosted: Wed Jun 08, 2011 6:40 pm
by Citrixfr
Hi supra92,

Just did it and it works!! woot!
Thanks a lot my Subsonic looks really better now ;)

Citrixfr

PostPosted: Mon Jun 27, 2011 3:35 am
by BluesBoy
Supra Thanks so much for your help with this. Worked great!

BluesBoy