- Layout improvements for the Chat client
This commit is contained in:
@@ -10,16 +10,31 @@
|
||||
<!-- Custom theme colors from tenant settings -->
|
||||
<style>
|
||||
:root {
|
||||
--primary-color: {{ customisation.primary_color|default('#007bff') }};
|
||||
--secondary-color: {{ customisation.secondary_color|default('#6c757d') }};
|
||||
--background-color: {{ customisation.background_color|default('#ffffff') }};
|
||||
--text-color: {{ customisation.text_color|default('#212529') }};
|
||||
/* Legacy support - keeping for backward compatibility */
|
||||
--primary-color: {{ customisation.active_background_color|default('#ffffff') }};
|
||||
--secondary-color: {{ customisation.active_text_color|default('#212529') }};
|
||||
|
||||
/* Sidebar customisation */
|
||||
--sidebar-color: {{ customisation.sidebar_color|default('#f8f9fa') }};
|
||||
--sidebar-background: {{ customisation.sidebar_background|default('#2c3e50') }};
|
||||
|
||||
/* Gradient customisation */
|
||||
--gradient-start-color: {{ customisation.gradient_start_color|default('#f5f7fa') }};
|
||||
--gradient-end-color: {{ customisation.gradient_end_color|default('#c3cfe2') }};
|
||||
|
||||
/* Markdown customisation */
|
||||
--markdown-background-color: {{ customisation.markdown_background_color|default('transparent') }};
|
||||
--markdown-text-color: {{ customisation.markdown_text_color|default('#ffffff') }};
|
||||
|
||||
/* Active elements customisation */
|
||||
--active-background-color: {{ customisation.active_background_color|default('#ffffff') }};
|
||||
--active-text-color: {{ customisation.active_text_color|default('#212529') }};
|
||||
|
||||
/* History customisation with alpha-based color manipulation */
|
||||
--history-background: {{ customisation.history_background|default(10)|adjust_color_alpha }};
|
||||
--history-user-message-background: {{ customisation.history_user_message_background|default(-10)|adjust_color_alpha }};
|
||||
--history-ai-message-background: {{ customisation.history_ai_message_background|default(0)|adjust_color_alpha }};
|
||||
--history-message-text-color: {{ customisation.history_message_text_color|default('#212529') }};
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user