changeset 149:0e28561bf73a

Specify `max-width: 400px' to p.profimg img
author HIROSE Yuuji <yuuji@gentei.org>
date Mon, 30 Nov 2015 09:30:53 +0859
parents afc3bf5c9dbb
children 6ee08d8b0f5f
files examples/common/default/default.css s4-funcs.sh
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/examples/common/default/default.css	Mon Nov 30 09:07:49 2015 +0859
+++ b/examples/common/default/default.css	Mon Nov 30 09:30:53 2015 +0859
@@ -79,6 +79,7 @@
 	   overflow: hidden; margin-right: 1em;
 	   padding: 0; border: white 1px solid; box-shadow: 2px 3px 4px
 	  }
+p.profimg img {max-width: 400px;}
 div.home+* {clear: both;}
 
 div.fold {margin-top: 1em; border-top: 1px solid black; padding-top: 1em;}
--- a/s4-funcs.sh	Mon Nov 30 09:07:49 2015 +0859
+++ b/s4-funcs.sh	Mon Nov 30 09:30:53 2015 +0859
@@ -1365,7 +1365,7 @@
   img=`query "SELECT type FROM user_m $sqcond LIMIT 1;"`
   imf=$tmpd/profimg.$$; touch $imf
   if [ -n "$img" ]; then
-    { printf '%s' "<img width=\"400\" src=\"data:${img#file:},"
+    { printf '%s' "<img src=\"data:${img#file:},"
       query "SELECT hex(bin) FROM user_m $sqcond LIMIT 1;" \
 	  | sed 's/\(..\)/%\1/g'
       echo '"'

yatex.org