Skip to content

Commit f9fb1f9

Browse files
committed
fix: Style optimization
1 parent 204a3df commit f9fb1f9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

frontend/src/views/embedded/index.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<div class="sqlbot-assistant-container">
33
<div class="header" :style="{ color: customSet.header_font_color }">
4+
<el-icon v-if="!embeddedHistoryHidden" size="20"> </el-icon>
45
<el-icon v-if="!logo" class="logo" size="30">
56
<LOGO></LOGO>
67
</el-icon>
@@ -30,7 +31,7 @@
3031
</div>
3132
</template>
3233
<script setup lang="ts">
33-
import { onBeforeMount, nextTick, onBeforeUnmount, ref, onMounted, reactive } from 'vue'
34+
import { onBeforeMount, nextTick, onBeforeUnmount, ref, onMounted, reactive, computed } from 'vue'
3435
import ChatComponent from '@/views/chat/index.vue'
3536
import { request } from '@/utils/request'
3637
import LOGO from '@/assets/svg/logo-custom_small.svg'
@@ -48,6 +49,10 @@ const appearanceStore = useAppearanceStoreWithOut()
4849
const route = useRoute()
4950
const chatRef = ref()
5051
52+
const embeddedHistoryHidden = computed(
53+
() => assistantStore.getAssistant && !assistantStore.getHistory
54+
)
55+
5156
const createChat = () => {
5257
chatRef.value?.createNewChat()
5358
}

0 commit comments

Comments
 (0)