From 1f268cce4cb2442460a4f26aef8133f99e9ee9aa Mon Sep 17 00:00:00 2001 From: Ahmad Hamed Date: Fri, 14 Apr 2017 02:42:07 +0300 Subject: [PATCH] decode post text in main thread + fix bottom bar alignment --- widget/assets/css/style.css | 32 +++++-------- widget/controllers/widget.wall.controller.js | 4 ++ widget/index.html | 23 ++++----- widget/templates/thread.html | 49 ++++++++++---------- 4 files changed, 49 insertions(+), 59 deletions(-) diff --git a/widget/assets/css/style.css b/widget/assets/css/style.css index 1a8133d..e47c576 100644 --- a/widget/assets/css/style.css +++ b/widget/assets/css/style.css @@ -347,11 +347,14 @@ .holder.bottom-post .post-holder { position: relative; + height: 100%; } .holder.bottom-post .post-holder .add-message { - width: 100%; - padding: 0 50px 0 38px; + position: absolute; + top: 12px; + width:100%; + text-align:center; } .holder.bottom-post .post-holder .add-message input { @@ -363,32 +366,20 @@ .holder.bottom-post .post-holder .add-media { position: absolute; - left: 0px; - top: 0px; - width: 38px; - height: 100%; - text-align: center; -} - -.holder.bottom-post .post-holder .add-media a { - padding: 7px; - display: inline-block; + left: 17px; + top: 11px; + font-size: 22px; } .holder.bottom-post .post-holder .send-message { position: absolute; - right: 0px; - top: 0px; - width: 49px; - height: 100%; + right: 17px; + top: 11px; } .holder.bottom-post .post-holder .add-media .icon { - font-size: 20px; - line-height: 24px; + font-size: 22px; color: inherit !important; - position: relative; - top: 1px; } .holder.bottom-post .post-holder .send-message input { @@ -741,6 +732,7 @@ textarea { /* Comment Box */ .small-post-box{ position: relative; + height: 100%; } .small-post-box .image-upload-queue{ position: absolute; diff --git a/widget/controllers/widget.wall.controller.js b/widget/controllers/widget.wall.controller.js index 82c00a3..4c4d00d 100644 --- a/widget/controllers/widget.wall.controller.js +++ b/widget/controllers/widget.wall.controller.js @@ -673,6 +673,10 @@ }, 500); }; + WidgetWall.decodeText = function (text) { + return decodeURIComponent(text); + }; + $scope.$watch(function () { return WidgetWall.SocialItems.items; }, function () { diff --git a/widget/index.html b/widget/index.html index 20ef67b..7d103e1 100644 --- a/widget/index.html +++ b/widget/index.html @@ -90,7 +90,7 @@

+ ng-bind-html="(WidgetWall.decodeText(post.text) | limitTo : (post.limit || 150) :0) | newLine"> ... You do not have any posts yet.


-
-
+
+
@@ -153,25 +153,20 @@
You do not have any posts yet.
-
- - - +
-
+
- +
- +
- +
@@ -194,7 +189,7 @@
You do not have any posts yet.
-
diff --git a/widget/templates/thread.html b/widget/templates/thread.html index e77fbd3..7f4d956 100644 --- a/widget/templates/thread.html +++ b/widget/templates/thread.html @@ -124,34 +124,33 @@

-
-
- - - -
-
- - - - -
-
- -
- +
+
+
+
+
+ + + + +
+
+ +
+ - - - - - + + + + + + - +
+
Cancel @@ -173,7 +172,7 @@
-