From a079cdc9e22335fa2d3272322ff730baab554c2d Mon Sep 17 00:00:00 2001 From: pdontthink Date: Sun, 28 Mar 2021 21:27:24 +0000 Subject: [PATCH] Make sure large images fit in viewable space git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14907 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- templates/default/css/default.css | 11 ++++++++++- templates/default/read_display_images_inline.tpl | 13 +++++++++---- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/templates/default/css/default.css b/templates/default/css/default.css index fe1c4ba2..5ed778cd 100644 --- a/templates/default/css/default.css +++ b/templates/default/css/default.css @@ -1018,7 +1018,7 @@ div.readInlineImages { } div.readInlineImages table { - width: 50%; + /* width: 50%; */ margin-top:8px; margin-bottom:8px; margin-left: auto; @@ -1042,6 +1042,15 @@ div.readInlineImages td.image { padding:10px; } +div.readInlineImages td img { + width:100%; +} + +table.imageWrapper { + margin-top:0 !important; + margin-bottom:0 !important; +} + div.viewHeader table.table1 { width: 100%; } diff --git a/templates/default/read_display_images_inline.tpl b/templates/default/read_display_images_inline.tpl index 23bd440e..1c791a78 100644 --- a/templates/default/read_display_images_inline.tpl +++ b/templates/default/read_display_images_inline.tpl @@ -50,11 +50,16 @@ if (count($images) == 0) { } ?> -   - - + + + + + +
+ +
@@ -64,4 +69,4 @@ if (count($images) == 0) { } ?> - \ No newline at end of file + -- 2.25.1