RichP714
  •  RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
2012-02-26T22:45:19Z
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

<HeaderTemplate>
<tr class="forumRowTitle">
<th colspan="2" align="left" class="header1 headerForum" width ="70%">
<YAF:LocalizedLabel ID="ForumHeaderLabel" runat="server" LocalizedTag="FORUM" />
</th>
<th id="Td1" class="header1 headerModerators" width="1%" runat="server" visible="<%# PageContext.BoardSettings.ShowModeratorList %>">
<YAF:LocalizedLabel ID="ModeratorsHeaderLabel" runat="server" LocalizedTag="MODERATORS" />
</th>
<th class="header1 headerTopics" width="4%">
<YAF:LocalizedLabel ID="TopicsHeaderLabel" runat="server" LocalizedTag="TOPICS" />
</th>
<th class="header1 headerPosts" width="4%">
<YAF:LocalizedLabel ID="PostsHeaderLabel" runat="server" LocalizedTag="POSTS" />
</th>
<th class="header1 headerLastPost" width="5%">
<YAF:LocalizedLabel ID="LastPostHeaderLabel" runat="server" LocalizedTag="LASTPOST" />
</th>
</tr>
</HeaderTemplate>

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

suggestions?
RichP714 attached the following image(s):

Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com 
Sponsor
tha_watcha
2012-02-27T00:38:02Z
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%;
}

UserPostedImage
RichP714
  •  RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
2012-02-27T01:08:03Z
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
2012-02-27T02:05:46Z
Originally Posted by: tha_watcha 

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%;
}



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
2012-02-27T08:09:18Z
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
2012-02-27T11:48:25Z
Try this...

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


It worked on my site with my theme
UserPostedImage
RichP714
  •  RichP714
  • 100% (Exalted)
  • YAF All-the-Time Topic Starter
2012-02-27T17:19:43Z
Originally Posted by: tha_watcha 

Try this...

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


It worked on my site with my theme




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
RichP714 attached the following image(s):

Enjoy!

Running YAF 1.9.5.5 final at: http://thecarversite.com 
JP
  •  JP
  • 100% (Exalted)
  • YAF Leader
2012-02-27T17:32:59Z
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
2012-02-28T00:27:13Z
Quote:

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.
UserPostedImage

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved