feat: update chatWidthClasses to prioritize auto chat width

This commit is contained in:
Imad Saddik 2026-03-14 08:57:25 +00:00
parent 23758f3ba8
commit e8eccf9b35
1 changed files with 6 additions and 2 deletions

View File

@ -84,9 +84,13 @@ class ChatStore {
get chatWidthClasses(): { class: string; style?: string } {
const currentConfig = config();
const autoChatWidth = currentConfig.autoChatWidth;
const customChatWidth = currentConfig.customChatWidth;
// Custom width takes priority if set
if (autoChatWidth) {
return { class: AUTO_WIDTH_CLASSES };
}
if (customChatWidth) {
let pixelValue: number | null = null;
@ -105,7 +109,7 @@ class ChatStore {
}
}
return currentConfig.autoChatWidth ? { class: AUTO_WIDTH_CLASSES } : { class: DEFAULT_WIDTH };
return { class: DEFAULT_WIDTH };
}
private setChatLoading(convId: string, loading: boolean): void {