Wrap comment bubbles in minimum width div to avoid chopping. Props mt. fixes #6207

git-svn-id: http://svn.automattic.com/wordpress/trunk@7427 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-03-20 21:40:17 +00:00
parent 3f52602fa4
commit f503cf59a6
4 changed files with 12 additions and 8 deletions

View File

@ -99,7 +99,7 @@ foreach($posts_columns as $column_name=>$column_display_name) {
case 'comments':
?>
<td class="num">
<td class="num"><div class="post-com-count-wrapper">
<?php
$left = get_pending_comments_num( $post->ID );
$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
@ -109,7 +109,7 @@ foreach($posts_columns as $column_name=>$column_display_name) {
if ( $left )
echo '</strong>';
?>
</td>
</div></td>
<?php
break;

View File

@ -111,7 +111,7 @@ foreach($posts_columns as $column_name=>$column_display_name) {
case 'comments':
?>
<td class="num">
<td class="num"><div class="post-com-count-wrapper">
<?php
$left = get_pending_comments_num( $post->ID );
$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
@ -121,7 +121,7 @@ foreach($posts_columns as $column_name=>$column_display_name) {
if ( $left )
echo '</strong>';
?>
</td>
</div></td>
<?php
break;

View File

@ -407,7 +407,7 @@ foreach ($posts_columns as $column_name=>$column_display_name) {
case 'comments':
?>
<td class="num">
<td class="num"><div class="post-com-count-wrapper">
<?php
$left = get_pending_comments_num( $page->ID );
$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
@ -417,7 +417,7 @@ foreach ($posts_columns as $column_name=>$column_display_name) {
if ( $left )
echo '</strong>';
?>
</td>
</div></td>
<?php
break;

View File

@ -698,6 +698,10 @@ a.view-comment-post-link {
display: none;
}
.post-com-count-wrapper {
min-width: 22px;
}
.post-com-count {
height: 1.3em;
display: block;
@ -705,7 +709,7 @@ a.view-comment-post-link {
overflow: hidden;
padding: 0 0 5px;
cursor: pointer;
background-position: center -80px;
background-position: center -81px;
background-repeat: no-repeat;
}
@ -722,7 +726,7 @@ a.view-comment-post-link {
}
strong .post-com-count {
background-position: center -55px;
background-position: center -56px;
}
.post-com-count:hover {