Skip to content

Commit

Permalink
feat: sticky upvote (#1264)
Browse files Browse the repository at this point in the history
  • Loading branch information
trin4ik authored Nov 12, 2024
1 parent 1ad1838 commit e3d72d7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/static/css/components/posts.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e3d72d7

Please sign in to comment.