Fix inquiry dox note interferring with profile dox note

Clicking on dox note on the profile was toggling the switch in the inquiry
pull/9946/head
kraktus 2021-10-09 13:52:01 +02:00 committed by Thibault Duplessis
parent e6853e9bc1
commit 95bc46ad5e
2 changed files with 4 additions and 4 deletions

View File

@ -122,9 +122,9 @@ object inquiry {
postForm(cls := "note", action := s"${routes.User.writeNote(in.user.username)}?note")(
textarea(name := "text", placeholder := "Write a mod note"),
input(tpe := "hidden", name := "mod", value := "true"),
isGranted(_.Admin) option div(cls := "note-dox")(
div(form3.cmnToggle("note-dox", "dox", checked = false)),
label(`for` := "note-dox")("Doxing info")
isGranted(_.Admin) option div(cls := "dox-inquiry-div")(
div(form3.cmnToggle("dox-inquiry", "dox", checked = false)),
label(`for` := "dox-inquiry")("Doxing info")
),
div(cls := "submission")(
submitButton(cls := "button thin")("SEND")

View File

@ -192,7 +192,7 @@ body.no-inquiry {
height: 8em;
}
.note-dox {
.dox-inquiry-div {
display: flex !important;
align-items: center;
padding: 0.5em;