s4
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 diff
1.1 --- a/examples/common/default/default.css Mon Nov 30 09:07:49 2015 +0859 1.2 +++ b/examples/common/default/default.css Mon Nov 30 09:30:53 2015 +0859 1.3 @@ -79,6 +79,7 @@ 1.4 overflow: hidden; margin-right: 1em; 1.5 padding: 0; border: white 1px solid; box-shadow: 2px 3px 4px 1.6 } 1.7 +p.profimg img {max-width: 400px;} 1.8 div.home+* {clear: both;} 1.9 1.10 div.fold {margin-top: 1em; border-top: 1px solid black; padding-top: 1em;}
2.1 --- a/s4-funcs.sh Mon Nov 30 09:07:49 2015 +0859 2.2 +++ b/s4-funcs.sh Mon Nov 30 09:30:53 2015 +0859 2.3 @@ -1365,7 +1365,7 @@ 2.4 img=`query "SELECT type FROM user_m $sqcond LIMIT 1;"` 2.5 imf=$tmpd/profimg.$$; touch $imf 2.6 if [ -n "$img" ]; then 2.7 - { printf '%s' "<img width=\"400\" src=\"data:${img#file:}," 2.8 + { printf '%s' "<img src=\"data:${img#file:}," 2.9 query "SELECT hex(bin) FROM user_m $sqcond LIMIT 1;" \ 2.10 | sed 's/\(..\)/%\1/g' 2.11 echo '"'