File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
components/common/HoverButton Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ function handleClick() {
12
12
13
13
<template >
14
14
<button
15
- class =" flex items-center justify-center w-10 h-10 transition rounded-full hover:bg-neutral-100 dark:hover:bg-[#414755]"
15
+ class =" flex items-center justify-center h-10 transition hover:bg-neutral-100 dark:hover:bg-[#414755]"
16
+ style =" flex-flow :row nowrap ;min-width :2.5em ;padding :.5em ;border-radius :.5em ;"
16
17
@click =" handleClick"
17
18
>
18
19
<slot />
Original file line number Diff line number Diff line change @@ -74,10 +74,11 @@ function handleShowPrompt() {
74
74
<IconPrompt class =" w-[20px] m-auto" />
75
75
</span >
76
76
</HoverButton >
77
- <HoverButton @click =" toggleUsingContext" >
78
- <span class =" text-xl" :class = " { 'text-[#4b9e5f]': usingContext, 'text-[#a8071a]': !usingContext } " >
77
+ <HoverButton :tooltip = " usingContext ? '点击停止包含上下文' : '点击开启包含上下文' " :class = " { 'text-[#4b9e5f]': usingContext, 'text-[#a8071a]': !usingContext } " @click =" toggleUsingContext" >
78
+ <span class =" text-xl" >
79
79
<SvgIcon icon =" ri:chat-history-line" />
80
80
</span >
81
+ <span style =" margin-left :.25em " >{{ usingContext ? '包含上下文' : '不含上下文' }}</span >
81
82
</HoverButton >
82
83
<HoverButton @click =" handleExport" >
83
84
<span class =" text-xl text-[#4f555e] dark:text-white" >
Original file line number Diff line number Diff line change @@ -683,10 +683,11 @@ onUnmounted(() => {
683
683
<IconPrompt class =" w-[20px] m-auto" />
684
684
</span >
685
685
</HoverButton >
686
- <HoverButton v-if =" !isMobile" @click =" handleToggleUsingContext" >
687
- <span class =" text-xl" :class = " { 'text-[#4b9e5f]': usingContext, 'text-[#a8071a]': !usingContext } " >
686
+ <HoverButton v-if =" !isMobile" :tooltip = " usingContext ? '点击停止包含上下文' : '点击开启包含上下文' " :class = " { 'text-[#4b9e5f]': usingContext, 'text-[#a8071a]': !usingContext } " @click =" handleToggleUsingContext" >
687
+ <span class =" text-xl" >
688
688
<SvgIcon icon =" ri:chat-history-line" />
689
689
</span >
690
+ <span style =" margin-left :.25em " >{{ usingContext ? '包含上下文' : '不含上下文' }}</span >
690
691
</HoverButton >
691
692
<NSelect
692
693
style =" width : 250px "
You can’t perform that action at this time.
0 commit comments