diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-10-22 12:58:11 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-10-22 12:58:11 +0200 |
commit | bcb4ac7aaeedbd776b3eb1cb66f85eb48a14040c (patch) | |
tree | 295506ebfa3e96f6e0e0ae2244d96b9d241e6214 | |
parent | 5395b173aa514b5dc99768c259f7b04c97ff9743 (diff) | |
download | volse-hubzilla-bcb4ac7aaeedbd776b3eb1cb66f85eb48a14040c.tar.gz volse-hubzilla-bcb4ac7aaeedbd776b3eb1cb66f85eb48a14040c.tar.bz2 volse-hubzilla-bcb4ac7aaeedbd776b3eb1cb66f85eb48a14040c.zip |
experiment: put the photo-item photo on top of the post
-rw-r--r-- | view/theme/redbasic/css/style.css | 8 | ||||
-rwxr-xr-x | view/tpl/conv_item.tpl | 11 |
2 files changed, 13 insertions, 6 deletions
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index d90e9e7c8..d01abff8e 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1635,7 +1635,13 @@ img.mail-conv-sender-photo { } .wall-photo-item { - padding: 0.5em 0px; + /*padding: 0.5em 10px;*/ +} + +.wall-photo-item img { + max-width: 100% !important; + border-top-right-radius: $radiuspx; + border-top-left-radius: $radiuspx; } .wall-item-tools { diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index e6e9d880e..760d64db0 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -8,6 +8,11 @@ <a name="{{$item.id}}" ></a> <div class="wall-item-outside-wrapper {{$item.indent}}{{$item.previewing}}" id="wall-item-outside-wrapper-{{$item.id}}" > <div class="wall-item-content-wrapper {{$item.indent}}" id="wall-item-content-wrapper-{{$item.id}}" style="clear:both;"> + {{if $item.photo}} + <div class="wall-photo-item" id="wall-photo-item-{{$item.id}}"> + {{$item.photo}} + </div> + {{/if}} <div class="wall-item-head"> <div class="wall-item-info" id="wall-item-info-{{$item.id}}" > <div class="wall-item-photo-wrapper{{if $item.owner_url}} wwfrom{{/if}}" id="wall-item-photo-wrapper-{{$item.id}}"> @@ -33,11 +38,7 @@ </div> <div class="clear"></div> </div> - {{if $item.photo}} - <div class="wall-photo-item" id="wall-photo-item-{{$item.id}}"> - {{$item.photo}} - </div> - {{/if}} + {{if $item.body}} <div class="wall-item-content" id="wall-item-content-{{$item.id}}"> <div class="wall-item-body" id="wall-item-body-{{$item.id}}" > |