|
|
@@ -180,7 +180,7 @@ function formatTime(ts: number): string {
|
|
|
|
|
|
<!-- 输入区域 -->
|
|
|
<div class="border-t p-3 dark:border-neutral-700">
|
|
|
- <div class="flex gap-2">
|
|
|
+ <div class="flex items-center gap-2">
|
|
|
<NInput
|
|
|
v-model:value="inputText"
|
|
|
type="textarea"
|
|
|
@@ -189,20 +189,18 @@ function formatTime(ts: number): string {
|
|
|
:disabled="isStreaming"
|
|
|
@keydown="handleKeydown"
|
|
|
/>
|
|
|
- <div class="flex flex-col justify-end">
|
|
|
- <NButton
|
|
|
- v-if="!isStreaming"
|
|
|
- type="primary"
|
|
|
- size="small"
|
|
|
- :disabled="!inputText.trim()"
|
|
|
- @click="handleSend"
|
|
|
- >
|
|
|
- <span class="i-ph:paper-plane-tilt" />
|
|
|
- </NButton>
|
|
|
- <NButton v-else type="error" size="small" @click="cancelChat">
|
|
|
- <span class="i-ph:stop-circle" />
|
|
|
- </NButton>
|
|
|
- </div>
|
|
|
+ <NButton
|
|
|
+ v-if="!isStreaming"
|
|
|
+ type="primary"
|
|
|
+ size="small"
|
|
|
+ :disabled="!inputText.trim()"
|
|
|
+ @click="handleSend"
|
|
|
+ >
|
|
|
+ <span class="i-ph:paper-plane-tilt" />
|
|
|
+ </NButton>
|
|
|
+ <NButton v-else type="error" size="small" @click="cancelChat">
|
|
|
+ <span class="i-ph:stop-circle" />
|
|
|
+ </NButton>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|