diff --git a/ui/src/components/chat/CanvasChat.vue b/ui/src/components/chat/CanvasChat.vue index 086fea9..baa8ed0 100644 --- a/ui/src/components/chat/CanvasChat.vue +++ b/ui/src/components/chat/CanvasChat.vue @@ -14,6 +14,9 @@ const chatStyleVariables = computed(() => ({ '--chat-input-box-color': ui.chatInputBoxColor, '--chat-accent-color': ui.chatAccentColor, '--chat-background-color': ui.chatBackgroundColor, + '--chat-font-color': ui.chatFontColor, + '--chat-font-family': ui.chatFontFamily || 'inherit', // Fallback to inherit if empty + '--chat-font-size': ui.chatFontSize ? `${ui.chatFontSize}px` : 'inherit', // Fallback to inherit })) function scrollBottom () { @@ -58,8 +61,13 @@ watch(() => chat.items.length, scrollBottom)
+ :class="m.owner === 'yo' ? '' : ''" + :style="{ + backgroundColor: m.owner === 'yo' ? 'var(--chat-own-message-color)' : 'var(--chat-agent-message-color)', + color: 'var(--chat-font-color)', + fontFamily: 'var(--chat-font-family)', + fontSize: 'var(--chat-font-size)' + }"> {{ m.text }}
@@ -77,7 +85,14 @@ watch(() => chat.items.length, scrollBottom) rows="1" placeholder="Escribí un mensaje… (Enter para enviar, Shift+Enter salto)" class="flex-1 resize-none rounded-lg border p-3 focus:outline-none focus:ring-2 custom-scroll" - :style="{ backgroundColor: 'var(--chat-input-box-color)', borderColor: 'var(--chat-accent-color)', '--tw-ring-color': 'var(--chat-accent-color)' }" + :style="{ + backgroundColor: 'var(--chat-input-box-color)', + borderColor: 'var(--chat-accent-color)', + '--tw-ring-color': 'var(--chat-accent-color)', + color: 'var(--chat-font-color)', + fontFamily: 'var(--chat-font-family)', + fontSize: 'var(--chat-font-size)' + }" />