From 4d240f9ca0a0afd03f3ea1e6cb96e88c3396a052 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Mon, 6 Nov 2023 16:45:04 +0300 Subject: [PATCH] improvment reactions page --- static/style.css | 11 ++++++++++- templates/reactionspage.tmpl | 26 ++++++++++++++------------ templates/status.tmpl | 2 +- 3 files changed, 25 insertions(+), 14 deletions(-) diff --git a/static/style.css b/static/style.css index 2da7325..4f79d8c 100644 --- a/static/style.css +++ b/static/style.css @@ -123,10 +123,19 @@ frame, body { display: inline-block; } -.pleroma-reactions form { +.pleroma-reactions #emoj { display: inline-block; } +.pleroma-reactions form { + display: block; +} + +.scrollable-emoji { + max-height: 240px; + overflow: scroll; +} + .status-action a { display: inline-block; } diff --git a/templates/reactionspage.tmpl b/templates/reactionspage.tmpl index 55dbf96..75cb311 100644 --- a/templates/reactionspage.tmpl +++ b/templates/reactionspage.tmpl @@ -3,24 +3,26 @@
Reactions
{{$st_id := .ID}}
Add reaction
-
+
-{{$emoji_filter := $.Ctx.AddReactionsFilter}} - {{range $shortcode, $code := .ReactionEmojis}} - {{if Allowed_emoji_page $shortcode $emoji_filter}} -
- - - -
- {{end}} - {{end}}
- + + emoji list
+{{$emoji_filter := $.Ctx.AddReactionsFilter}} + {{range $shortcode, $code := .ReactionEmojis}} + {{if Allowed_emoji_page $shortcode $emoji_filter}} +
+ + + + {{$shortcode}} +
+ {{end}} + {{end}}
diff --git a/templates/status.tmpl b/templates/status.tmpl index e6d3495..2713fdf 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -121,7 +121,7 @@
{{range .Pleroma.Reactions}} {{$react := "react"}} {{if .Me}} {{$react = "unreact"}} {{end}} -
+ {{if .Url}}