From bcb4ac7aaeedbd776b3eb1cb66f85eb48a14040c Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 22 Oct 2015 12:58:11 +0200 Subject: experiment: put the photo-item photo on top of the post --- view/theme/redbasic/css/style.css | 8 +++++++- view/tpl/conv_item.tpl | 11 ++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) (limited to 'view') 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 @@
+ {{if $item.photo}} +
+ {{$item.photo}} +
+ {{/if}}
@@ -33,11 +38,7 @@
- {{if $item.photo}} -
- {{$item.photo}} -
- {{/if}} + {{if $item.body}}
-- cgit v1.2.3