File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
src/components/Main/MainView/MessageInput Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<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
+ >
4
8
<message-input-typing-animation />
5
9
<div :class =" $style.text" >
6
10
{{ text }}
21
25
<script lang="ts" setup>
22
26
import UserIconEllipsisList from ' /@/components/UI/UserIconEllipsisList.vue'
23
27
import MessageInputTypingAnimation from ' ./MessageInputTypingAnimation.vue'
28
+ import { useResponsiveStore } from ' /@/store/ui/responsive'
24
29
import { computed } from ' vue'
25
30
import type { UserId } from ' /@/types/entity-ids'
26
31
27
32
const props = defineProps <{
28
33
typingUsers: readonly UserId []
29
34
}>()
30
35
36
+ const { isMobile } = useResponsiveStore ()
37
+
31
38
const text = computed (
32
39
() =>
33
40
` ${props .typingUsers .length > 3 ? ' and others' : ' ' } ${
@@ -40,11 +47,15 @@ const text = computed(
40
47
.container {
41
48
position : absolute ;
42
49
top : -4px ;
43
- left : 0 ;
50
+ left : 0 px ;
44
51
transform : translateY (-100% );
45
52
display : flex ;
46
53
flex-direction : row-reverse ;
47
54
align-items : center ;
55
+
56
+ & [data-is-mobile ] {
57
+ left : 16px ;
58
+ }
48
59
}
49
60
50
61
.text {
You can’t perform that action at this time.
0 commit comments