Skip to content

Commit

Permalink
issue3969修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Nattuki committed Nov 9, 2023
1 parent bea3a2b commit 96d5298
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<transition name="typing-users">
<div v-if="typingUsers.length > 0" :class="$style.container">
<div v-if="typingUsers.length > 0" :class="$style.container" :data-is-mobile="$boolAttr(isMobile)">
<message-input-typing-animation />
<div :class="$style.text">
{{ text }}
Expand All @@ -21,13 +21,16 @@
<script lang="ts" setup>
import UserIconEllipsisList from '/@/components/UI/UserIconEllipsisList.vue'
import MessageInputTypingAnimation from './MessageInputTypingAnimation.vue'
import { useResponsiveStore } from '/@/store/ui/responsive'
import { computed } from 'vue'
import type { UserId } from '/@/types/entity-ids'
const props = defineProps<{
typingUsers: readonly UserId[]
}>()
const { isMobile } = useResponsiveStore()
const text = computed(
() =>
`${props.typingUsers.length > 3 ? 'and others' : ''} ${
Expand All @@ -40,11 +43,15 @@ const text = computed(
.container {
position: absolute;
top: -4px;
left: 0;
left: 16px;
transform: translateY(-100%);
display: flex;
flex-direction: row-reverse;
align-items: center;
&:not([data-is-mobile]){
left: 0px;
}
}
.text {
Expand Down

0 comments on commit 96d5298

Please sign in to comment.