From e3d72d74d48049967c6c7579bdcc0f26a58744cf Mon Sep 17 00:00:00 2001 From: trin4ik Date: Tue, 12 Nov 2024 14:09:11 +0300 Subject: [PATCH] feat: sticky upvote (#1264) --- frontend/static/css/components/posts.css | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/static/css/components/posts.css b/frontend/static/css/components/posts.css index 33f61f17b..49fcdb167 100644 --- a/frontend/static/css/components/posts.css +++ b/frontend/static/css/components/posts.css @@ -148,11 +148,14 @@ } .post-type-post .upvote:not(.upvote-disabled) { - padding-top: 30px !important; + float: left; + position: sticky; + margin-left: -110px; + margin-top: 30px; } @media only screen and (max-width : 1024px) { - .post-type-post .upvote { + .post-type-post .upvote, .post-type-post .upvote:not(.upvote-disabled) { top: 0; left: auto; right: 0;