Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
  #1  
Old 03-28-2015, 07:47 PM
Guest210212002
Guest
 
Posts: n/a
Default Search results thread list - thread title wrap oddness.

This is on the default style, so I'm ruling out one of the myriad edits I made to my main style.

See here. The title of the third post down in the list is "Since "incoming" NGD's seem to be a thing lately..."



On my forum list, when I shrink the browser the table row expands (gets taller) so that the text wraps. However in my new posts search result, the row doesn't grow. The text at the end of the thread title gets bumped below the title. See here:



If you look at that same thread again, all you can see is ""Since "incoming" NGD's seem to be a", because the last two words get shoved under the thread title but the cell itself doesn't grow at all.

Any idea what might cause this? I've checked a couple of other default vb4 sites and they don't seem to have the same issue, so it's something I did. I just have no idea what, heh. It doesn't happen in my forum list, only in the New Posts search result listing.
Reply With Quote
  #2  
Old 03-29-2015, 09:57 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got to your "search.css" template, and edit your "searchtitle" class to read:

Code:
.searchtitle {
	font-size:{vb:stylevar font.fontSize}{vb:stylevar font.units};
	padding:6px 0 2px;
	/*height: {vb:math {vb:stylevar font.fontSize}{vb:stylevar font.units} * {vb:stylevar line_height}};*/
	height: auto;
	overflow: hidden;
}
This will allow the element to grow as needed.

edit: I found a couple of other CSS tweaks are needed...

Go to "threadlist.css" and locate:

Code:
.threadbit .alt {
	background: {vb:stylevar threadbit_alt_background};
}
And change it to read:

Code:
.threadbit {
	background: {vb:stylevar threadbit_alt_background};
}
Then got to "additional.css" and add:

Code:
.inner .author {
	margin-bottom: 5px !important;
}
Reply With Quote
Благодарность от:
  #3  
Old 03-30-2015, 04:50 AM
OUTL4W OUTL4W is offline
 
Join Date: May 2013
Location: Gettysburg, Pa
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe this is also achieved by going into stylevars then in search box, type "line-height" and it should bring it up under "common" then set height to "auto".
Reply With Quote
Благодарность от:
  #4  
Old 03-31-2015, 07:37 PM
Guest210212002
Guest
 
Posts: n/a
Default

Thanks guys. That fixed the wrap, but now my thread stats cell doesn't quite make it to the bottom of the row in a search. I've been firebugging it and it looks like it might be threadstats.td, but I can't quite sort what to adjust.



This is my site, guest/guest for a login if anyone's more savvy with this and wouldn't mind taking a peek.

--------------- Added [DATE]1427886889[/DATE] at [TIME]1427886889[/TIME] ---------------

Also, if a mod could move this over to the graphics forum I'd appreciate it. (Sorry about that, not enough coffee.)
Reply With Quote
  #5  
Old 04-03-2015, 11:30 AM
Guest210212002
Guest
 
Posts: n/a
Default

This is driving me bonkers, aaaagh!

I made the edits in MarkFL's post, which would do as a bandaid however it makes my replies/views box have the same background as the rest of the thread strip. I'd like to keep it the alt color. Setting the width to auto works for the wrap, but I still have the Ugly Box Of Doom.

I'm looking at it in firebug, and around the default vB replies/views container there's a cell/box:



However around mine, that doesn't seem to be there. This is the only wrap that I can get around that area.



Looking at the HTML on the default skin:

Code:
<div class="threadinfo" title="blah blah title">
<ul class="threadstats td alt" title="">
<li>Replies: 35 </li>
<li>Views: 623</li>
<li class="hidden">Rating0 / 5</li>
</ul>
vs. mine:

Code:
<div class="threadinfo" title="blah blah title">
<ul class="threadstats td alt" title="">
<li>
<font color="#000000">Replies:</font>
<font color="#000000">35</font>
</li>
<li>
<font color="#000000">Views:</font>
<font color="#000000">623</font>
</li>
</li>
<li class="hidden">Rating0 / 5</li>
</ul>
The only difference in mine that I can see is that I shoved a lazy font color tag in there for the time being until I can fix this (I'll do it the right way later). I'm going mad, it feels like I've put more time into this than I have the bulk of the rest of my style. Aaaagh!
Reply With Quote
  #6  
Old 04-03-2015, 01:59 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try adding the following selectors to "additional.css":

HTML Code:
.nonsticky {
	overflow: hidden;
}

.nonsticky .threadinfo, .nonsticky .threadstats, .nonsticky .threadlastpost, .nonsticky .threadpostedin {
	display: inline-block;
	padding-bottom: 64px;
	margin-bottom: -64px;
}
Reply With Quote
  #7  
Old 04-03-2015, 07:52 PM
Guest210212002
Guest
 
Posts: n/a
Default

That did it, thank you very much! The text is a little top-justified in the cell but I can certainly live with it. Cheers man, that was driving me crazy!
Reply With Quote
  #8  
Old 04-03-2015, 09:16 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chris-777 View Post
That did it, thank you very much! The text is a little top-justified in the cell but I can certainly live with it. Cheers man, that was driving me crazy!
Change to second selector set to read:

HTML Code:
.nonsticky .threadinfo, .nonsticky .threadstats, .nonsticky .threadlastpost, .nonsticky .threadpostedin {
	display: inline-block;
	padding-top: 6px;
	padding-bottom: 64px;
	margin-bottom: -64px;
}
Then add:

HTML Code:
.searchtitle {
	padding: 0;
}
This will match the top padding of the leftmost element on the line.

Also add this selector:

HTML Code:
.inner .author {
	margin-bottom: 6px !important;
}
Now your data rows will look like the attached...
Attached Images
File Type: png chris777.png (19.1 KB, 0 views)
Reply With Quote
  #9  
Old 04-04-2015, 11:11 AM
Guest210212002
Guest
 
Posts: n/a
Default

And thank you once again!
Reply With Quote
  #10  
Old 04-04-2015, 12:38 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One more thing...to get your sticky threads to match the nonsticky threads you should add:

HTML Code:
.sticky .threadinfo, .sticky .threadstats, .sticky .threadlastpost, .sticky .threadpostedin {
	display: inline-block;
	padding-top: 6px;
	padding-bottom: 64px;
	margin-bottom: -64px;
}
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:11 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06696 seconds
  • Memory Usage 2,269KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_code
  • (5)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (5)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete