diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-04-24 22:36:28 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-04-24 22:36:28 +0900 |
| commit | ccf063709e7a33a6690f84a19acbbf9ef0209efe (patch) | |
| tree | 4013afb516b67629b3b54e8ea0e243c5d8632d84 /src/client | |
| parent | Tweak animation (diff) | |
| download | sharkey-ccf063709e7a33a6690f84a19acbbf9ef0209efe.tar.gz sharkey-ccf063709e7a33a6690f84a19acbbf9ef0209efe.tar.bz2 sharkey-ccf063709e7a33a6690f84a19acbbf9ef0209efe.zip | |
Tweak UI
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/components/tab.vue | 6 | ||||
| -rw-r--r-- | src/client/ui/chat/index.vue | 2 | ||||
| -rw-r--r-- | src/client/ui/deck/main-column.vue | 2 | ||||
| -rw-r--r-- | src/client/ui/default.vue | 2 | ||||
| -rw-r--r-- | src/client/ui/universal.vue | 2 |
5 files changed, 8 insertions, 6 deletions
diff --git a/src/client/components/tab.vue b/src/client/components/tab.vue index 96cbe50fb1..5e54fc968e 100644 --- a/src/client/components/tab.vue +++ b/src/client/components/tab.vue @@ -12,14 +12,16 @@ export default defineComponent({ return withDirectives(h('div', { class: 'pxhvhrfw', - }, options.map(option => h('button', { + }, options.map(option => withDirectives(h('button', { class: ['_button', { active: this.value === option.props.value }], key: option.props.value, disabled: this.value === option.props.value, onClick: () => { this.$emit('update:value', option.props.value); } - }, option.children))), [ + }, option.children), [ + [resolveDirective('click-anime')] + ]))), [ [resolveDirective('size'), { max: [500] }] ]); } diff --git a/src/client/ui/chat/index.vue b/src/client/ui/chat/index.vue index b498d70a75..be1bd7758a 100644 --- a/src/client/ui/chat/index.vue +++ b/src/client/ui/chat/index.vue @@ -313,7 +313,7 @@ export default defineComponent({ } }; if (isLink(e.target)) return; - if (['INPUT', 'TEXTAREA'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return; + if (['INPUT', 'TEXTAREA', 'IMG'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return; if (window.getSelection().toString() !== '') return; const path = this.$route.path; os.contextMenu([{ diff --git a/src/client/ui/deck/main-column.vue b/src/client/ui/deck/main-column.vue index 75cf94aaed..de36fd5966 100644 --- a/src/client/ui/deck/main-column.vue +++ b/src/client/ui/deck/main-column.vue @@ -64,7 +64,7 @@ export default defineComponent({ } }; if (isLink(e.target)) return; - if (['INPUT', 'TEXTAREA'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return; + if (['INPUT', 'TEXTAREA', 'IMG'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return; if (window.getSelection().toString() !== '') return; const path = this.$route.path; os.contextMenu([{ diff --git a/src/client/ui/default.vue b/src/client/ui/default.vue index 0cc969272a..6cfb680719 100644 --- a/src/client/ui/default.vue +++ b/src/client/ui/default.vue @@ -165,7 +165,7 @@ export default defineComponent({ } }; if (isLink(e.target)) return; - if (['INPUT', 'TEXTAREA'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return; + if (['INPUT', 'TEXTAREA', 'IMG'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return; if (window.getSelection().toString() !== '') return; const path = this.$route.path; os.contextMenu([{ diff --git a/src/client/ui/universal.vue b/src/client/ui/universal.vue index a44dfc42f0..478fa13076 100644 --- a/src/client/ui/universal.vue +++ b/src/client/ui/universal.vue @@ -191,7 +191,7 @@ export default defineComponent({ } }; if (isLink(e.target)) return; - if (['INPUT', 'TEXTAREA'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return; + if (['INPUT', 'TEXTAREA', 'IMG'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return; if (window.getSelection().toString() !== '') return; const path = this.$route.path; os.contextMenu([{ |