From dd03bad6b284653440ee8171a86ad966983a94f5 Mon Sep 17 00:00:00 2001 From: Ryan Stafford Date: Tue, 16 Apr 2024 20:00:57 -0400 Subject: [PATCH] fix block popup on single instance --- public/style.css | 4 ++-- routes.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/style.css b/public/style.css index a98946b..267da94 100644 --- a/public/style.css +++ b/public/style.css @@ -442,12 +442,12 @@ form.nsfw div { .entry .buttons .blockpopup { display: inline-block; position: absolute; - border: 1px solid #888; z-index: 100; background-color: white; } form.blockpost { - margin: 2px; + padding: 2px; + border: 1px solid #888; } .blockpost div:last-child input { margin: 4px 2px 4px 4px; diff --git a/routes.go b/routes.go index ecb415f..c2176b6 100644 --- a/routes.go +++ b/routes.go @@ -1585,6 +1585,7 @@ func GetRouter() *httprouter.Router { router.GET("/c/:community/edit", middleware(GetCreateCommunity)) router.GET("/post/:postid", middleware(GetPost)) router.POST("/post/:postid", middleware(UserOp)) + router.GET("/post/:postid/:op", middleware(GetPost)) router.GET("/comment/:commentid", middleware(GetComment)) router.GET("/comment/:commentid/:op", middleware(GetComment)) router.POST("/comment/:commentid", middleware(UserOp))