hide elements around textarea if added by browsers extensions. (#5)

This commit is contained in:
Miroslav Šedivý 2022-07-28 12:20:42 +02:00 committed by GitHub
parent b8d3c1c7ee
commit cd15007e3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 4 deletions

View File

@ -2,7 +2,7 @@
<canvas ref="overlay" class="neko-cursors" tabindex="0" /> <canvas ref="overlay" class="neko-cursors" tabindex="0" />
</template> </template>
<style lang="scss" scoped> <style lang="scss">
.neko-cursors { .neko-cursors {
position: absolute; position: absolute;
top: 0; top: 0;

View File

@ -43,7 +43,7 @@
</div> </div>
</template> </template>
<style lang="scss" scoped> <style lang="scss">
.neko-component { .neko-component {
width: 100%; width: 100%;
height: 100%; height: 100%;

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="neko-overlay-wrap">
<canvas ref="overlay" class="neko-overlay" tabindex="0" /> <canvas ref="overlay" class="neko-overlay" tabindex="0" />
<textarea <textarea
ref="textarea" ref="textarea"
@ -22,7 +22,12 @@
</div> </div>
</template> </template>
<style lang="scss" scoped> <style lang="scss">
/* hide elements around textarea if added by browsers extensions */
.neko-overlay-wrap *:not(.neko-overlay) {
display: none;
}
.neko-overlay { .neko-overlay {
position: absolute; position: absolute;
top: 0; top: 0;