rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: darkrats on April 07, 2023, 12:53:50 AM

Title: Adjusting Column Width In Version 2.3m
Post by: darkrats on April 07, 2023, 12:53:50 AM
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.
Title: Re: Adjusting column width in version 2.3m
Post by: LeoNeeson on April 07, 2023, 03:28:56 AM
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.
Title: Re: Adjusting column width in version 2.3m
Post by: darkrats on April 07, 2023, 03:53:00 AM
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.