From 85408fe437cc06ef713f96fda426fd29318d9e0b Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 6 May 2023 21:27:21 +0000 Subject: [PATCH 1/3] Vier: The emoji picker is now integrated --- view/templates/head.tpl | 24 ++++++++++++++-------- view/templates/jot.tpl | 9 ++++---- view/theme/vier/style.css | 5 +++++ view/theme/vier/templates/comment_item.tpl | 6 ++---- 4 files changed, 26 insertions(+), 18 deletions(-) diff --git a/view/templates/head.tpl b/view/templates/head.tpl index a06d51f7c0..ef1596e7b5 100644 --- a/view/templates/head.tpl +++ b/view/templates/head.tpl @@ -1,4 +1,3 @@ - @@ -47,14 +46,26 @@ + + - - - + \ No newline at end of file diff --git a/view/templates/jot.tpl b/view/templates/jot.tpl index 6b86186b0a..52d95531d7 100644 --- a/view/templates/jot.tpl +++ b/view/templates/jot.tpl @@ -51,7 +51,9 @@ - +
+ +
@@ -83,11 +85,8 @@ {{if $created_at}}{{$created_at nofilter}}{{/if}} - - -
- {{if $content}}{{/if}} +{{if $content}}{{/if}} \ No newline at end of file diff --git a/view/theme/vier/style.css b/view/theme/vier/style.css index 2de86c6e32..a1713a6043 100644 --- a/view/theme/vier/style.css +++ b/view/theme/vier/style.css @@ -2079,6 +2079,11 @@ profile-jot-form #jot-title, #profile-jot-form #jot-category { margin-left: 15px; cursor: pointer; } +#profile-emojis-wrapper { + float: left; + margin-left: 15px; + cursor: pointer; +} #jot-perms-icon { float: right; margin-left: 15px; diff --git a/view/theme/vier/templates/comment_item.tpl b/view/theme/vier/templates/comment_item.tpl index 8caf0d54c3..9a539e1f23 100644 --- a/view/theme/vier/templates/comment_item.tpl +++ b/view/theme/vier/templates/comment_item.tpl @@ -1,4 +1,3 @@ - {{if $threaded}}
{{else}} @@ -37,7 +36,7 @@ - +
{{if $preview}}{{/if}} @@ -47,5 +46,4 @@
- - + \ No newline at end of file From c064ebe2311f32d8293a0c8aa1c7609d37be178a Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 6 May 2023 21:46:40 +0000 Subject: [PATCH 2/3] Emojis are now added either in comments or starting posts - but not both --- view/templates/head.tpl | 6 +++++- view/templates/jot.tpl | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/view/templates/head.tpl b/view/templates/head.tpl index ef1596e7b5..9087cea82e 100644 --- a/view/templates/head.tpl +++ b/view/templates/head.tpl @@ -51,9 +51,13 @@ window.onload = function(){ new EmojiPicker({ trigger: [ + { + selector: '.emojis-post', + insertInto: ['#comment-edit-text-0', '#profile-jot-text'] + }, { selector: '.emojis', - insertInto: ['#comment-edit-text-0', '#profile-jot-text', '.comment-edit-text-full'] + insertInto: ['.comment-edit-text-full'] } ], closeButton: true diff --git a/view/templates/jot.tpl b/view/templates/jot.tpl index 52d95531d7..07824c6e32 100644 --- a/view/templates/jot.tpl +++ b/view/templates/jot.tpl @@ -52,7 +52,7 @@
- +
From b233350e9ff8f54281a760b0ac3a3f6ac24eb887 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 6 May 2023 21:52:30 +0000 Subject: [PATCH 3/3] Fixes spaces --- view/theme/vier/templates/comment_item.tpl | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/view/theme/vier/templates/comment_item.tpl b/view/theme/vier/templates/comment_item.tpl index 9a539e1f23..638c8b8ea1 100644 --- a/view/theme/vier/templates/comment_item.tpl +++ b/view/theme/vier/templates/comment_item.tpl @@ -28,20 +28,20 @@ + + {{if $preview}}{{/if}} + +