YAFLogo

RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
12 years ago
I'm switching to a three column layout, and want to change the width of the 'Last Post' column of ForumCategoryList.

As it is, when the whole object is squeezed into a center column there's too much wasted space, so I want to make that column more narrow.

I've tried adding

width ="70%">

width="5%">

but Forum column will only grow to about 50%, and LastPost column won't get any smaller than it is.

suggestions?


Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com 

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago
Take a look at the Links in the LastPost column there are two long, thats why this column didnt get smaller. You could try to make the links smaller or add word-breaking.

Try to add this to your theme....


.yafnet .lastPostCol {
      word-wrap: break-word;
      width: 5%;
}
RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
12 years ago
that didn't change anything; thanks for the idea though 😉
Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com 

RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
12 years ago

Take a look at the Links in the LastPost column there are two long, thats why this column didnt get smaller. You could try to make the links smaller or add word-breaking.

Try to add this to your theme....


.yafnet .lastPostCol {
      word-wrap: break-word;
      width: 5%;
}

Originally Posted by: tha_watcha 

That didn't change the column width of the forum list, but it DID change the last column width of the topic view....weird


Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com 

RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
12 years ago
I can address the column header with .yafnet tr.forumRowTitle th.headerLastPost but can only change the TH color, etc; I think I need to be able to add the break-word thing to the contents of the table, not the TH?

If so, is this possible?


Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com 

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago
Try this...

.yafnet .headerLastPost,
.yafnet .lastPostCol {
      word-wrap: break-word;
      width: 5%;
}

It worked on my site with my theme

RichP714
  • RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
12 years ago

Try this...

.yafnet .headerLastPost,
.yafnet .lastPostCol {
      word-wrap: break-word;
      width: 5%;
}

It worked on my site with my theme

Originally Posted by: tha_watcha 

Thanks for looking into this; must be a problem on my end; your changes effect my default.aspx?g=topics display last column perfectly, but have no effect on default.aspx?g=forum display


Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com 

JP
  • JP
  • 100% (Exalted)
  • YAF Leader
12 years ago
Thanks for bringing this up, I have the opposite problem - want to make the the topic list lastpost wider, since I have overridden the lastpost.smallfont element...
He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Old Chinese Proverb]
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago

Thanks for looking into this; must be a problem on my end; your changes effect my default.aspx?g=topics display last column perfectly, but have no effect on default.aspx?g=forum display

It depends what you actually add to your theme, with the code i posted above it should work on both pages.