mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
fix(ui): adjust preset chip stacking
This commit is contained in:
1 parent
483907f1ac
commit
0bd4d31dd2
2 files changed
+3
-3
No files matched your search
@@ -54,7 +54,7 @@ onBeforeUnmount(() => {
|
||||
|
||||
<template>
|
||||
<div v-if="leadingActionLabel || questions.length > 0" class="relative">
|
||||
<div class="relative z-10 flex flex-nowrap gap-2">
|
||||
<div class="relative flex flex-nowrap gap-2">
|
||||
<button v-if="leadingActionLabel" :class="chipClass" :disabled="props.disabled" @click="emit('leadingAction')">
|
||||
{{ leadingActionLabel }}
|
||||
</button>
|
||||
|
||||
@@ -335,7 +335,7 @@ function getSessionAvatar(session: AnalysisSession): string | null {
|
||||
return session.groupAvatar || null
|
||||
}
|
||||
|
||||
// 根据会话 ID 生成雅致的莫兰迪色系头像背景和文字颜色(中文注释)
|
||||
// 根据会话 ID 生成雅致的莫兰迪色系头像背景和文字颜色
|
||||
function getAvatarColorClass(session: AnalysisSession, isActive: boolean) {
|
||||
if (isActive) {
|
||||
return isPrivateChat(session)
|
||||
@@ -343,7 +343,7 @@ function getAvatarColorClass(session: AnalysisSession, isActive: boolean) {
|
||||
: 'bg-primary-600 text-white dark:bg-primary-500'
|
||||
}
|
||||
|
||||
// 雅致的低饱和度配色方案,提升侧边栏的简洁感与品质感(中文注释)
|
||||
// 雅致的低饱和度配色方案,提升侧边栏的简洁感与品质感
|
||||
const palettes = [
|
||||
{ bg: 'bg-pink-50 dark:bg-pink-950/20', text: 'text-pink-600 dark:text-pink-400' },
|
||||
{ bg: 'bg-blue-50 dark:bg-blue-950/20', text: 'text-blue-600 dark:text-blue-400' },
|
||||
|
||||
Reference in new issue
Block a user