forked from AkkomaGang/akkoma-fe
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
3 changed files with 11 additions and 2 deletions
|
@ -59,6 +59,15 @@ $status-margin: 0.75em;
|
|||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
._misclick-prevention & {
|
||||
pointer-events: none;
|
||||
|
||||
.attachments {
|
||||
pointer-events: initial;
|
||||
cursor: initial;
|
||||
}
|
||||
}
|
||||
|
||||
.left-side {
|
||||
margin-right: $status-margin;
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ const Timeline = {
|
|||
},
|
||||
classes () {
|
||||
let rootClasses = !this.embedded ? ['panel', 'panel-default'] : []
|
||||
if (this.blockingClicks) rootClasses = rootClasses.concat(['-blocked'])
|
||||
if (this.blockingClicks) rootClasses = rootClasses.concat(['-blocked', '_misclick-prevention'])
|
||||
return {
|
||||
root: rootClasses,
|
||||
header: ['timeline-heading'].concat(!this.embedded ? ['panel-heading'] : []),
|
||||
|
|
|
@ -113,7 +113,7 @@
|
|||
}
|
||||
|
||||
&.-blocked {
|
||||
pointer-events: none;
|
||||
cursor: progress;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue