From 8e0f04026c3c223703f8f363f96e37adf7c0edf5 Mon Sep 17 00:00:00 2001
From: rabuzarus <>
Date: Sat, 30 Jan 2016 01:53:21 +0100
Subject: [PATCH] vier: some fixes for mobile view
---
include/text.php | 4 ++--
view/theme/vier/mobile.css | 15 ++++++++++++++-
view/theme/vier/style.css | 3 ++-
3 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/include/text.php b/include/text.php
index 62d4bf151..4f3af5aee 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1504,7 +1504,7 @@ function prepare_body(&$item,$attach = false, $preview = false) {
$pos = strpos($s, $spoilersearch);
$rnd = random_string(8);
- $spoilerreplace = '
'.sprintf(t('Click to open/close')).''.
+ $spoilerreplace = '
'.sprintf(t('Click to open/close')).''.
'
';
$s = substr($s, 0, $pos).$spoilerreplace.substr($s, $pos+strlen($spoilersearch));
}
@@ -1516,7 +1516,7 @@ function prepare_body(&$item,$attach = false, $preview = false) {
$pos = strpos($s, $authorsearch);
$rnd = random_string(8);
- $authorreplace = '
'.sprintf(t('Click to open/close')).''.
+ $authorreplace = '
'.sprintf(t('Click to open/close')).''.
'';
$s = substr($s, 0, $pos).$authorreplace.substr($s, $pos+strlen($authorsearch));
}
diff --git a/view/theme/vier/mobile.css b/view/theme/vier/mobile.css
index cde49b7b7..f6ec2b8cc 100644
--- a/view/theme/vier/mobile.css
+++ b/view/theme/vier/mobile.css
@@ -67,10 +67,23 @@ nav ul {
@media screen and (max-width: 480px) {
.wall-item-container .wall-item-content img,
- .children .wall-item-container .wall-item-item .wall-item-content img,
.wall-item-container .wall-item-content .type-link img.attachment-image, .type-link img.attachment-image, .type-video img.attachment-image {
max-width: 200px;
}
+ /* fix img width in threaded view - maybe there exists a better possibility to do this
+ maybe this needs also to be done for tablet view*/
+ .children .wall-item-container .wall-item-item .wall-item-content img {
+ max-width: 100%;
+ }
+ iframe {
+ max-width: 100%;
+ }
+
+ /* the top-nav notfication menu
+ Note: the device needs a min display width of 320px */
+ #nav-notifications-menu {
+ width: 270px;
+ }
}
.wall-item-container.thread_level_2,
diff --git a/view/theme/vier/style.css b/view/theme/vier/style.css
index defeec702..16685e55e 100644
--- a/view/theme/vier/style.css
+++ b/view/theme/vier/style.css
@@ -1783,7 +1783,8 @@ section.minimal {
}
#jot-preview-content {
- padding-top: 25px;
+ padding-top: 4px;
+ clear: both;
}
#jot-preview-content .tread-wrapper {