Merge branch 'advanced-misclick-guard' into 'develop'
Instead of blocking all interaction, only block interaction in places that matter See merge request pleroma/pleroma-fe!1276
This commit is contained in:
commit
dbeecd18ac
@ -59,6 +59,15 @@ $status-margin: 0.75em;
|
|||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
._misclick-prevention & {
|
||||||
|
pointer-events: none;
|
||||||
|
|
||||||
|
.attachments {
|
||||||
|
pointer-events: initial;
|
||||||
|
cursor: initial;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.left-side {
|
.left-side {
|
||||||
margin-right: $status-margin;
|
margin-right: $status-margin;
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ const Timeline = {
|
|||||||
},
|
},
|
||||||
classes () {
|
classes () {
|
||||||
let rootClasses = !this.embedded ? ['panel', 'panel-default'] : []
|
let rootClasses = !this.embedded ? ['panel', 'panel-default'] : []
|
||||||
if (this.blockingClicks) rootClasses = rootClasses.concat(['-blocked'])
|
if (this.blockingClicks) rootClasses = rootClasses.concat(['-blocked', '_misclick-prevention'])
|
||||||
return {
|
return {
|
||||||
root: rootClasses,
|
root: rootClasses,
|
||||||
header: ['timeline-heading'].concat(!this.embedded ? ['panel-heading'] : []),
|
header: ['timeline-heading'].concat(!this.embedded ? ['panel-heading'] : []),
|
||||||
|
@ -113,7 +113,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.-blocked {
|
&.-blocked {
|
||||||
pointer-events: none;
|
cursor: progress;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user