Skip to content

Commit db1b61b

Browse files
authored
Merge pull request #4144 from traPtitech/fix/issue3969
スマホ画面でユーザーが入力中の表示の左側に余白をつけた
2 parents 49c1826 + 836cc87 commit db1b61b

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/components/Main/MainView/MessageInput/MessageInputTypingUsers.vue

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<template>
22
<transition name="typing-users">
3-
<div v-if="typingUsers.length > 0" :class="$style.container">
3+
<div
4+
v-if="typingUsers.length > 0"
5+
:class="$style.container"
6+
:data-is-mobile="$boolAttr(isMobile)"
7+
>
48
<message-input-typing-animation />
59
<div :class="$style.text">
610
{{ text }}
@@ -21,13 +25,16 @@
2125
<script lang="ts" setup>
2226
import UserIconEllipsisList from '/@/components/UI/UserIconEllipsisList.vue'
2327
import MessageInputTypingAnimation from './MessageInputTypingAnimation.vue'
28+
import { useResponsiveStore } from '/@/store/ui/responsive'
2429
import { computed } from 'vue'
2530
import type { UserId } from '/@/types/entity-ids'
2631
2732
const props = defineProps<{
2833
typingUsers: readonly UserId[]
2934
}>()
3035
36+
const { isMobile } = useResponsiveStore()
37+
3138
const text = computed(
3239
() =>
3340
`${props.typingUsers.length > 3 ? 'and others' : ''} ${
@@ -40,11 +47,15 @@ const text = computed(
4047
.container {
4148
position: absolute;
4249
top: -4px;
43-
left: 0;
50+
left: 0px;
4451
transform: translateY(-100%);
4552
display: flex;
4653
flex-direction: row-reverse;
4754
align-items: center;
55+
56+
&[data-is-mobile] {
57+
left: 16px;
58+
}
4859
}
4960
5061
.text {

0 commit comments

Comments
 (0)