summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkInput.vue
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-03-16 10:58:06 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-03-16 10:58:06 +0900
commitc2940fd77cba7b0cf912db9fda92e66dbce9110f (patch)
tree1ac1df00c5ea467af720e2c96bf3517d4d1d59b3 /packages/frontend/src/components/MkInput.vue
parentrefactor (diff)
downloadmisskey-c2940fd77cba7b0cf912db9fda92e66dbce9110f.tar.gz
misskey-c2940fd77cba7b0cf912db9fda92e66dbce9110f.tar.bz2
misskey-c2940fd77cba7b0cf912db9fda92e66dbce9110f.zip
enhance(frontend): improve usability on touch device
Diffstat (limited to 'packages/frontend/src/components/MkInput.vue')
-rw-r--r--packages/frontend/src/components/MkInput.vue8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/frontend/src/components/MkInput.vue b/packages/frontend/src/components/MkInput.vue
index aff9a67020..a66e64311a 100644
--- a/packages/frontend/src/components/MkInput.vue
+++ b/packages/frontend/src/components/MkInput.vue
@@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-->
<template>
-<div>
+<div class="_selectable">
<div :class="$style.label" @click="focus"><slot name="label"></slot></div>
<div :class="[$style.input, { [$style.inline]: inline, [$style.disabled]: disabled, [$style.focused]: focused }]">
<div ref="prefixEl" :class="$style.prefix"><slot name="prefix"></slot></div>
@@ -45,13 +45,13 @@ SPDX-License-Identifier: AGPL-3.0-only
<script lang="ts" setup>
import { onMounted, onUnmounted, nextTick, ref, shallowRef, watch, computed, toRefs } from 'vue';
-import type { InputHTMLAttributes } from 'vue';
import { debounce } from 'throttle-debounce';
-import MkButton from '@/components/MkButton.vue';
import { useInterval } from '@@/js/use-interval.js';
+import type { InputHTMLAttributes } from 'vue';
+import type { SuggestionType } from '@/utility/autocomplete.js';
+import MkButton from '@/components/MkButton.vue';
import { i18n } from '@/i18n.js';
import { Autocomplete } from '@/utility/autocomplete.js';
-import type { SuggestionType } from '@/utility/autocomplete.js';
const props = defineProps<{
modelValue: string | number | null;