Fix: mouseover

This commit is contained in:
cutls 2019-10-20 13:27:19 +09:00
parent 81a3da550f
commit 8784cae01c
3 changed files with 31 additions and 6 deletions

View File

@ -227,6 +227,18 @@ iframe,
grid-template-rows: auto 1.6rem 1fr auto 2.5rem;
grid-template-areas: "notice notice notice" "icon display_name display_name" "space toot toot" "space additional additional" "vis actions side";
}
.hide-actions{
grid-template-rows: auto 1.6rem 1fr auto 0;
}
.hide-actions .area-actions{
display:none;
}
.hide-actions .area-vis{
display:none;
}
.hide-actions .area-side{
display:none;
}
.cvo h1,
.cvo h2,
.cvo h3,
@ -325,6 +337,7 @@ iframe,
margin: 2px;
grid-area: side;
}
.quote-inline {
display: none;
}

View File

@ -238,6 +238,7 @@ function cardCheck(tlid) {
}
function mov(id, tlid, type) {
var click = false
if (tlid == "notf") {
var tlide = "[data-notf=" + acct_id + "]";
} else if (tlid == "user") {
@ -257,12 +258,21 @@ function mov(id, tlid, type) {
} else {
mouseover = "hide";
}
click=true
} else if (mouseover == "no") {
mouseover = "";
}
if (mouseover == "hide") {
$(tlide + " [toot-id=" + id + "] .area-actions").toggleClass("hide")
$(tlide + " [toot-id=" + id + "] .area-side").toggleClass("hide")
if(click){
$(tlide + " [toot-id=" + id + "]").toggleClass("hide-actions")
}else{
$(tlide + " [toot-id=" + id + "]").removeClass("hide-actions")
}
//$(tlide + " [toot-id=" + id + "] .area-vis").toggleClass("hide")
//$(tlide + " [toot-id=" + id + "] .area-actions").toggleClass("hide")
//$(tlide + " [toot-id=" + id + "] .area-side").toggleClass("hide")
}
}
@ -278,8 +288,10 @@ function resetmv(type) {
mouseover = "hide";
}
if (mouseover == "hide") {
$(".area-actions").addClass("hide");
$(".area-side").addClass("hide");
$(".cvo").addClass("hide-actions")
//$(".area-vis").addClass("hide");
//$(".area-actions").addClass("hide");
//$(".area-side").addClass("hide");
}
}

File diff suppressed because one or more lines are too long