Skip to content

Commit

Permalink
feat: stop click action of tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
OrenZhang committed Jun 29, 2024
1 parent e1d6ff3 commit a9b6267
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ html, body, #app {
}

html {
overflow: hidden;
overflow-x: hidden;
}

.arco-icon {
Expand Down
47 changes: 32 additions & 15 deletions src/components/ChatInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ defineExpose({reGenerate, promptForm});
<a-tooltip
v-if="userBehavior && chatLoading"
:background-color="'var(--color-fill-1)'"
@click.stop
>
<template #content>
<span style="color: var(--color-text-2)">
Expand All @@ -368,26 +369,38 @@ defineExpose({reGenerate, promptForm});
<icon-arrow-down />
</a-button>
</a-tooltip>
<a-dropdown @select="setModel">
<a-button
:disabled="chatLoading"
class="chat-input-left-button"
>
<icon-robot />
</a-button>
<a-tooltip
v-if="showEditBox"
:background-color="'var(--color-fill-1)'"
@click.stop
>
<template #content>
<a-doption
v-for="item in models"
:key="item.id"
:value="item.id"
>
{{ item.name }}
</a-doption>
<span style="color: var(--color-text-2)">
{{ $t('ChooseModel') }}
</span>
</template>
</a-dropdown>
<a-dropdown @select="setModel">
<a-button
:disabled="chatLoading"
class="chat-input-left-button"
>
<icon-robot />
</a-button>
<template #content>
<a-doption
v-for="item in models"
:key="item.id"
:value="item.id"
>
{{ item.name }}
</a-doption>
</template>
</a-dropdown>
</a-tooltip>
<a-tooltip
:background-color="'var(--color-fill-1)'"
v-if="showEditBox"
@click.stop
>
<template #content>
<span style="color: var(--color-text-2)">
Expand All @@ -407,6 +420,7 @@ defineExpose({reGenerate, promptForm});
<a-tooltip
:background-color="'var(--color-fill-1)'"
v-if="uploadEnabled && showEditBox"
@click.stop
>
<template #content>
<span style="color: var(--color-text-2)">
Expand All @@ -426,6 +440,7 @@ defineExpose({reGenerate, promptForm});
<a-tooltip
:background-color="'var(--color-fill-1)'"
v-if="showEditBox"
@click.stop
>
<template #content>
<span style="color: var(--color-text-2)">
Expand All @@ -445,6 +460,7 @@ defineExpose({reGenerate, promptForm});
<a-tooltip
:background-color="'var(--color-fill-1)'"
v-if="showEditBox"
@click.stop
>
<template #content>
<span style="color: var(--color-text-2)">
Expand Down Expand Up @@ -488,6 +504,7 @@ defineExpose({reGenerate, promptForm});
<a-modal
v-model:visible="presetVisible"
:footer="false"
:esc-to-close="true"
@cancel="presetVisible = false"
>
<template #title>
Expand Down

0 comments on commit a9b6267

Please sign in to comment.