Skip to content

Commit

Permalink
fix: the chat input box cannot be fixed at the bottom sugarforever#163
Browse files Browse the repository at this point in the history
  • Loading branch information
satrong committed Mar 29, 2024
1 parent ac7722d commit b9b094f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pages/knowledgebases/[id].vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script setup>
const route = useRoute();
const id = route.params.id;
const route = useRoute()
const id = route.params.id
const { data } = await useFetch(`/api/knowledgebases/${id}`);
const knowledgebase = ref(data.value.knowledgeBase);
const { data } = await useFetch(`/api/knowledgebases/${id}`)
const knowledgebase = ref(data.value.knowledgeBase)
const links = [{
label: 'Knowledge Bases',
Expand All @@ -16,9 +16,9 @@ const links = [{
</script>
<template>
<div class="h-full flex flex-col w-full">
<UBreadcrumb :links="links" class="px-4 mb-4" />
<UBreadcrumb :links="links" class="px-4 mb-4 flex-shrink-0" />
<ClientOnly>
<chat :knowledgebase="knowledgebase" />
<chat :knowledgebase="knowledgebase" class="h-[calc(100%-32px-1rem)]" />
</ClientOnly>
</div>
</template>

0 comments on commit b9b094f

Please sign in to comment.