Skip to content
Open
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions dashboard/src/components/chat/CommandSuggestion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</template>

<script setup lang="ts">
import { computed, reactive } from "vue";
import { computed, reactive, watch } from "vue";
import { useModuleI18n } from "@/i18n/composables";

export interface SuggestionCommand {
Expand Down Expand Up @@ -113,6 +113,15 @@ const panelStyle = computed(() => {
};
});

watch(
() => props.visible,
(val) => {
if (!val) {
tooltip.visible = false;
}
},
);
Comment thread
elecvoid243 marked this conversation as resolved.

function handleSelect(index: number) {
const cmd = props.commands[index];
if (cmd) {
Expand Down Expand Up @@ -224,7 +233,7 @@ function handleMouseLeave() {
}

.is-dark .command-description {
color: #999;
color: #e0e0e0;
}

.command-suggestion-hint {
Expand Down
Loading