File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/views/chat/components/Message Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { SvgIcon } from '@/components/common'
7
7
import { copyText } from ' @/utils/format'
8
8
import { useIconRender } from ' @/hooks/useIconRender'
9
9
import { t } from ' @/locales'
10
+ import { useBasicLayout } from ' @/hooks/useBasicLayout'
10
11
11
12
interface Props {
12
13
dateTime? : string
@@ -25,6 +26,8 @@ const props = defineProps<Props>()
25
26
26
27
const emit = defineEmits <Emit >()
27
28
29
+ const { isMobile } = useBasicLayout ()
30
+
28
31
const { iconRender } = useIconRender ()
29
32
30
33
const textRef = ref <HTMLElement >()
@@ -113,7 +116,12 @@ function handleRegenerate() {
113
116
>
114
117
<SvgIcon icon =" ri:restart-line" />
115
118
</button >
116
- <NDropdown :placement =" !inversion ? 'right' : 'left'" :options =" options" @select =" handleSelect" >
119
+ <NDropdown
120
+ :trigger =" isMobile ? 'click' : 'hover'"
121
+ :placement =" !inversion ? 'right' : 'left'"
122
+ :options =" options"
123
+ @select =" handleSelect"
124
+ >
117
125
<button class =" transition text-neutral-300 hover:text-neutral-800 dark:hover:text-neutral-200" >
118
126
<SvgIcon icon =" ri:more-2-fill" />
119
127
</button >
You can’t perform that action at this time.
0 commit comments