File tree Expand file tree Collapse file tree 3 files changed +13
-16
lines changed
entrypoints/content/components Expand file tree Collapse file tree 3 files changed +13
-16
lines changed Original file line number Diff line number Diff line change 10
10
class =" text-xs max-w-full"
11
11
:disabled =" modelList.length === 0"
12
12
dropdownClass =" text-xs text-black w-52"
13
- containerClass =" max-w-full"
13
+ : containerClass =" classNames(' max-w-full', containerClass) "
14
14
:dropdownAlign =" dropdownAlign"
15
15
>
16
16
<template #button =" { option } " >
@@ -84,13 +84,15 @@ import { formatSize } from '@/utils/formatter'
84
84
import { SUPPORTED_MODELS } from ' @/utils/llm/web-llm'
85
85
import { getTabStore } from ' @/utils/tab-store'
86
86
import { getUserConfig } from ' @/utils/user-config'
87
+ import { classNames } from ' @/utils/vue/utils'
87
88
88
89
import Selector from ' ./Selector.vue'
89
90
90
91
defineProps <{
91
92
showDetails? : boolean
92
93
allowDelete? : boolean
93
94
dropdownAlign? : ' left' | ' center' | ' right' | ' stretch' | undefined
95
+ containerClass? : string
94
96
}>()
95
97
96
98
const { modelList : ollamaModelList } = toRefs (useOllamaStatusStore ())
Original file line number Diff line number Diff line change 47
47
</ScrollContainer >
48
48
<div
49
49
ref =" inputContainerRef"
50
- class =" p-3 absolute bottom-0 left-0 right-0 flex flex-col gap-3 z-50"
50
+ class =" p-4 pt-2 absolute bottom-0 left-0 right-0 flex flex-col gap-3 z-50"
51
51
>
52
52
<div >
53
53
<TabSelector v-model:selectedTabs =" contextTabs" />
54
54
</div >
55
55
<div class =" flex gap-1" >
56
56
<ScrollContainer
57
57
class =" max-h-72 grow shadow-02 bg-white rounded-md"
58
- itemContainerClass =" p-2 "
58
+ itemContainerClass =" p-1 "
59
59
>
60
60
<div class =" flex gap-1 items-stretch" >
61
61
<AutoExpandTextArea
Original file line number Diff line number Diff line change 4
4
ref =" topRef"
5
5
class =" bg-[#E9E9EC]"
6
6
>
7
- <div class =" h-13 px-3 flex items-center justify-between border-b border-gray-200 " >
7
+ <div class =" h-15 px-4 flex items-center justify-between border-b border-gray-200 " >
8
8
<div class =" left flex items-center gap-2" >
9
9
<Logo
10
- showText
11
10
class =" font-bold text-base"
12
11
/>
12
+ <ModelSelector
13
+ containerClass =" h-7"
14
+ class =" max-w-44"
15
+ dropdownAlign =" left"
16
+ />
17
+ </div >
18
+ <div class =" right flex items-center gap-4" >
13
19
<IconAdd
14
20
v-if =" !chat.historyManager.onlyHasDefaultMessages()"
15
21
class =" w-4 cursor-pointer hover:text-gray-500"
16
22
@click =" onNewChat"
17
23
/>
18
- </div >
19
- <div class =" right flex items-center gap-4" >
20
24
<IconSetting
21
25
class =" w-4 cursor-pointer hover:text-gray-500 ml-1"
22
26
@click =" onClickSetting"
38
42
/>
39
43
</div >
40
44
</div >
41
- <div
42
- class =" w-full flex justify-end px-4 pb-px"
43
- :style =" { top: `${topBounding.height.value}px` }"
44
- >
45
- <ModelSelector
46
- class =" max-w-44"
47
- dropdownAlign =" right"
48
- />
49
- </div >
50
45
</div >
51
46
<div class =" px-5 py-2" >
52
47
<div
You can’t perform that action at this time.
0 commit comments