From ac705b694b179a144b2f07eec7a6dd4ac1e09aa4 Mon Sep 17 00:00:00 2001 From: Kris Date: Thu, 19 Dec 2024 18:14:22 -0500 Subject: [PATCH] UX: minor improvements to LLM page and admin tables (#1034) --- .../components/ai-llms-list-editor.gjs | 24 +++++-------- .../modules/llms/common/ai-llms-editor.scss | 34 +++++++++++++++++-- 2 files changed, 40 insertions(+), 18 deletions(-) diff --git a/assets/javascripts/discourse/components/ai-llms-list-editor.gjs b/assets/javascripts/discourse/components/ai-llms-list-editor.gjs index 820f75e53..0bc82d68d 100644 --- a/assets/javascripts/discourse/components/ai-llms-list-editor.gjs +++ b/assets/javascripts/discourse/components/ai-llms-list-editor.gjs @@ -119,14 +119,17 @@ export default class AiLlmsListEditor extends Component { @llmTemplate={{@llmTemplate}} /> {{else}} + {{#if this.hasLlmElements}}
@@ -185,18 +188,7 @@ export default class AiLlmsListEditor extends Component { {{/if}}
- - + diff --git a/assets/stylesheets/modules/llms/common/ai-llms-editor.scss b/assets/stylesheets/modules/llms/common/ai-llms-editor.scss index 9397c2d40..49ce51ff6 100644 --- a/assets/stylesheets/modules/llms/common/ai-llms-editor.scss +++ b/assets/stylesheets/modules/llms/common/ai-llms-editor.scss @@ -6,8 +6,9 @@ margin: 0 0 1em 0; } - &__configured + &__templates { - margin-top: 3em; + &__configured, + &__templates { + margin-top: 2em; } } @@ -66,12 +67,41 @@ } } +.ai-llms-list-editor__configured, +.ai-llms-list-editor__templates { + h2 { + font-size: var(--font-up-1); + } +} + .ai-llms-list-editor__configured { .d-toggle-switch { justify-content: center; } } +.ai-tool-list-editor__current, +.ai-persona-list-editor__current, +.ai-llms-list-editor__configured { + .d-admin-table { + tr:hover { + background: inherit; + } + th, + td { + &:first-child { + padding-left: 0; + } + } + th, + td { + &:last-child { + padding-right: 0; + } + } + } +} + .ai-llms-list-editor__templates { &-list { display: grid;