From 43b4e38b3a45362adc970dda9d19598f82291b67 Mon Sep 17 00:00:00 2001 From: xRy0 Date: Wed, 21 May 2025 23:07:24 +0300 Subject: [PATCH] feat(FeedReports): Report button with icon added to microblog --- .../templates/components/post/microblogpost.xml | 1 + Web/static/css/microblog.css | 14 ++++++++++++++ Web/static/img/report.png | Bin 0 -> 169 bytes 3 files changed, 15 insertions(+) create mode 100644 Web/static/img/report.png diff --git a/Web/Presenters/templates/components/post/microblogpost.xml b/Web/Presenters/templates/components/post/microblogpost.xml index b39b8239..7f20f31b 100644 --- a/Web/Presenters/templates/components/post/microblogpost.xml +++ b/Web/Presenters/templates/components/post/microblogpost.xml @@ -58,6 +58,7 @@ {_pinned} + {if $canBePinned && !($forceNoPinLink ?? false) && $compact == false} {if $post->isPinned()} diff --git a/Web/static/css/microblog.css b/Web/static/css/microblog.css index 503af42a..46a1bb04 100644 --- a/Web/static/css/microblog.css +++ b/Web/static/css/microblog.css @@ -86,6 +86,20 @@ background-color: rgb(240, 240, 240); } +.report { + float: right; + height: 16px; + width: 16px; + overflow: auto; + background: url("/assets/packages/static/openvk/img/report.png") no-repeat 0 0; + opacity: 0.1; + transition-duration: 0.3s; +} + +.report:hover { + opacity: 0.4; +} + .post-author .delete { float: right; height: 16px; diff --git a/Web/static/img/report.png b/Web/static/img/report.png new file mode 100644 index 0000000000000000000000000000000000000000..7bd1b9ee7a001997dd6287dc123154615b36b335 GIT binary patch literal 169 zcmeAS@N?(olHy`uVBq!ia0vp^+#t-v3?#1{n!goDF%}28J2BoosZ$T+a29w(76TOs zgD@k*tT_@O!2q8SS0EkHw*`p4+~%|aa+phk{DK+&+ut`4nF!=+dAc};RLn_E5%_W7 zgute@zyqoL$sEkg$qc6%Ire>MHB9m4h>%&+*2u{4t%6%XF4JTlP#1%ztDnm{r-UW| D@3$<& literal 0 HcmV?d00001