rejetto forum

Adjusting Column Width In Version 2.3m

0 Members and 1 Guest are viewing this topic.

Offline darkrats

  • Occasional poster
  • *
    • Posts: 5
    • View Profile
I want to adjust the width of the column called "Name .extension". Need it to be a little wider so that the file name, if long, does not show up as two lines, rather just one line. Where do I edit the HTML to do that, if possible? Thanks.


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 859
  • Status: On hiatus       (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
I want to adjust the width of the column called "Name .extension". Need it to be a little wider so that the file name, if long, does not show up as two lines, rather just one line. Where do I edit the HTML to do that, if possible? Thanks.
Hi!, :) just follow these steps...

1) Press F6 to edit the template

2) Find the following line:

Code: [Select]
#files tr td:first-child { text-align:left; }
3) Change it with the following:

Quote
#files tr td:first-child { text-align:left; overflow:hidden; word-wrap:normal; white-space:nowrap; text-overflow:ellipsis; max-width:300px; }

(The text marked in red color is the addition)

This is just an example, it's up to you adapting to your needs (you need to have some CSS knowledge). The above code, is ONLY valid for the default template of v2.3m!

Hope it helps!
Cheers,
Leo.
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline darkrats

  • Occasional poster
  • *
    • Posts: 5
    • View Profile
Hi!, :) just follow these steps...

1) Press F6 to edit the template

2) Find the following line:

Code: [Select]
#files tr td:first-child { text-align:left; }
3) Change it with the following:

(The text marked in red color is the addition)

This is just an example, it's up to you adapting to your needs (you need to have some CSS knowledge). The above code, is ONLY valid for the default template of v2.3m!

Hope it helps!
Cheers,
Leo.
Didn't see any changes, but I've got lots of time so I'll play around with the information you gave and see what happens.
Thanks for the quick reply.