聊天样式微调
This commit is contained in:
1 parent
fafcdfe742
commit
efae286f5c
12 files changed
+442
-293
No files matched your search
@@ -113,6 +113,29 @@
|
||||
border-color: rgba(148, 163, 184, 0.26);
|
||||
box-shadow: var(--glow-accent);
|
||||
}
|
||||
|
||||
/* Keep chat composer border and fill visually consistent in light/dark themes. */
|
||||
.chat-composer-shell {
|
||||
background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.97) 100%);
|
||||
box-shadow: 0 14px 28px -20px rgba(15, 23, 42, 0.38);
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
.chat-composer-shell:focus-within {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 16px 34px -22px rgba(14, 165, 233, 0.45);
|
||||
}
|
||||
|
||||
.chat-composer-textarea {
|
||||
background-color: transparent !important;
|
||||
border: 0 !important;
|
||||
text-decoration: none;
|
||||
caret-color: #0891b2;
|
||||
}
|
||||
|
||||
.chat-composer-textarea::selection {
|
||||
background-color: rgba(14, 165, 233, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
@@ -150,6 +173,20 @@ html.dark .glass-panel {
|
||||
background: rgba(2, 6, 23, 0.66);
|
||||
border-color: rgba(71, 85, 105, 0.5);
|
||||
}
|
||||
|
||||
html.dark .chat-composer-shell {
|
||||
background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(10, 16, 30, 0.92) 100%);
|
||||
box-shadow: 0 18px 36px -28px rgba(2, 6, 23, 0.96);
|
||||
}
|
||||
|
||||
html.dark .chat-composer-textarea {
|
||||
background-color: transparent !important;
|
||||
caret-color: #67e8f9;
|
||||
}
|
||||
|
||||
html.dark .chat-composer-textarea::selection {
|
||||
background-color: rgba(56, 189, 248, 0.25);
|
||||
}
|
||||
}
|
||||
|
||||
/* Custom Scrollbar */
|
||||
|
||||
@@ -743,15 +743,18 @@ const submitFeedback = async () => {
|
||||
|
||||
<footer class="safe-bottom-lg sticky bottom-0 z-20 border-t border-slate-200/80 bg-white/70 p-4 backdrop-blur-xl dark:border-slate-700/70 dark:bg-slate-950/65 md:p-6">
|
||||
<div class="relative mx-auto max-w-5xl">
|
||||
<div class="relative rounded-2xl border border-slate-200 bg-white/95 shadow-xl shadow-slate-300/25 transition-all duration-300 focus-within:border-cyan-500 focus-within:ring-2 focus-within:ring-cyan-500/25 dark:border-slate-700 dark:bg-slate-900/88 dark:shadow-none">
|
||||
<div class="chat-composer-shell relative overflow-hidden rounded-2xl border border-slate-200 bg-white/95 shadow-xl shadow-slate-300/25 transition-all duration-300 focus-within:border-cyan-500 focus-within:ring-2 focus-within:ring-cyan-500/25 dark:border-slate-700 dark:bg-slate-900/88 dark:shadow-none">
|
||||
<textarea
|
||||
v-model="input"
|
||||
@keydown.enter.prevent="handleSend"
|
||||
rows="1"
|
||||
:placeholder="$t('chat.placeholder')"
|
||||
class="w-full resize-none bg-transparent py-4 pl-5 pr-14 text-[15px] leading-relaxed text-slate-800 placeholder-slate-400 focus:outline-none dark:text-slate-100 dark:placeholder-slate-500"
|
||||
class="chat-composer-textarea w-full resize-none bg-transparent py-4 pl-5 pr-14 text-[15px] leading-relaxed text-slate-800 placeholder-slate-400 focus:outline-none dark:text-slate-100 dark:placeholder-slate-500"
|
||||
style="min-height: 56px; max-height: 220px;"
|
||||
:disabled="isThinking"
|
||||
spellcheck="false"
|
||||
autocorrect="off"
|
||||
autocapitalize="off"
|
||||
></textarea>
|
||||
<button
|
||||
@click="handleSend"
|
||||
|
||||
Reference in new issue
Block a user