Permalink
Browse files

Tweak styling for better webcomic media previews.

  • Loading branch information...
1 parent 61b4b54 commit 99a0145563ae08de73177387d9e969c7b8957890 Michael Sisk committed Dec 3, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 -/php/posts.php
View
@@ -614,7 +614,7 @@ public static function ajax_media_preview( $id ) {
$old_content_width = $content_width;
$content_width = 266;
- echo '<style scoped>.insert-media img{vertical-align:bottom}</style><a href="#" class="insert-media">';
+ echo '<style scoped>.insert-media img{height:auto;max-width:100%;vertical-align:bottom}</style><a href="#" class="insert-media">';
foreach ( $attachments as $attachment ) {
echo wp_get_attachment_image( $attachment->ID, array( $content_width, $content_width ) );

0 comments on commit 99a0145

Please sign in to comment.