Fix: mouseover
This commit is contained in:
parent
81a3da550f
commit
8784cae01c
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
Loading…
Reference in New Issue
Block a user