mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-09 00:51:35 +01:00
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:
parent
3f52602fa4
commit
f503cf59a6
@ -99,7 +99,7 @@ foreach($posts_columns as $column_name=>$column_display_name) {
|
|||||||
|
|
||||||
case 'comments':
|
case 'comments':
|
||||||
?>
|
?>
|
||||||
<td class="num">
|
<td class="num"><div class="post-com-count-wrapper">
|
||||||
<?php
|
<?php
|
||||||
$left = get_pending_comments_num( $post->ID );
|
$left = get_pending_comments_num( $post->ID );
|
||||||
$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
|
$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
|
||||||
@ -109,7 +109,7 @@ foreach($posts_columns as $column_name=>$column_display_name) {
|
|||||||
if ( $left )
|
if ( $left )
|
||||||
echo '</strong>';
|
echo '</strong>';
|
||||||
?>
|
?>
|
||||||
</td>
|
</div></td>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ foreach($posts_columns as $column_name=>$column_display_name) {
|
|||||||
|
|
||||||
case 'comments':
|
case 'comments':
|
||||||
?>
|
?>
|
||||||
<td class="num">
|
<td class="num"><div class="post-com-count-wrapper">
|
||||||
<?php
|
<?php
|
||||||
$left = get_pending_comments_num( $post->ID );
|
$left = get_pending_comments_num( $post->ID );
|
||||||
$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
|
$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
|
||||||
@ -121,7 +121,7 @@ foreach($posts_columns as $column_name=>$column_display_name) {
|
|||||||
if ( $left )
|
if ( $left )
|
||||||
echo '</strong>';
|
echo '</strong>';
|
||||||
?>
|
?>
|
||||||
</td>
|
</div></td>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -407,7 +407,7 @@ foreach ($posts_columns as $column_name=>$column_display_name) {
|
|||||||
|
|
||||||
case 'comments':
|
case 'comments':
|
||||||
?>
|
?>
|
||||||
<td class="num">
|
<td class="num"><div class="post-com-count-wrapper">
|
||||||
<?php
|
<?php
|
||||||
$left = get_pending_comments_num( $page->ID );
|
$left = get_pending_comments_num( $page->ID );
|
||||||
$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
|
$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
|
||||||
@ -417,7 +417,7 @@ foreach ($posts_columns as $column_name=>$column_display_name) {
|
|||||||
if ( $left )
|
if ( $left )
|
||||||
echo '</strong>';
|
echo '</strong>';
|
||||||
?>
|
?>
|
||||||
</td>
|
</div></td>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -698,6 +698,10 @@ a.view-comment-post-link {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-com-count-wrapper {
|
||||||
|
min-width: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
.post-com-count {
|
.post-com-count {
|
||||||
height: 1.3em;
|
height: 1.3em;
|
||||||
display: block;
|
display: block;
|
||||||
@ -705,7 +709,7 @@ a.view-comment-post-link {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding: 0 0 5px;
|
padding: 0 0 5px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-position: center -80px;
|
background-position: center -81px;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -722,7 +726,7 @@ a.view-comment-post-link {
|
|||||||
}
|
}
|
||||||
|
|
||||||
strong .post-com-count {
|
strong .post-com-count {
|
||||||
background-position: center -55px;
|
background-position: center -56px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-com-count:hover {
|
.post-com-count:hover {
|
||||||
|
Loading…
Reference in New Issue
Block a user