Limit the size of the images in multipart/mixed view (on browsers which supports...
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Sun, 14 Jan 2007 13:47:43 +0000 (13:47 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:35:18 +0000 (00:35 +0100)
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@166 9869982d-c50d-0410-be91-f2a2ec7c7c7b

banana/mimepart.inc.php
css/style.css

index 26cb31a..3f543bc 100644 (file)
@@ -420,7 +420,7 @@ class BananaMimePart
         list($type, $subtype) = $this->getType();
         if ($type == 'image') {
             $part = $this->id ? $this->id : $this->filename;
-            return '<img src="'
+            return '<img class="multipart" src="'
                  . banana_htmlentities(Banana::$page->makeUrl(array('group' => Banana::$group,
                                                                     'artid' => Banana::$artid,
                                                                     'part'  => $part)))
index b02058d..06ccc7c 100644 (file)
     border-color: #aaaa00;
     background: inherit;
 }
+.banana table.message img.multipart {
+    max-width: 200px;
+    max-height: 200px;
+}
 
 /** MISC **/
 .banana .center { text-align: center; padding: 1em; }