From 1a8532b91b5e3876a38809596c52af1c7f2a825b Mon Sep 17 00:00:00 2001 From: Kris Date: Thu, 20 Jun 2024 13:32:14 -0400 Subject: [PATCH] UX: improve composer suggestion button layout (#678) --- .../modules/ai-helper/common/ai-helper.scss | 34 +++++++++++-------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/assets/stylesheets/modules/ai-helper/common/ai-helper.scss b/assets/stylesheets/modules/ai-helper/common/ai-helper.scss index f634988a..f15b008d 100644 --- a/assets/stylesheets/modules/ai-helper/common/ai-helper.scss +++ b/assets/stylesheets/modules/ai-helper/common/ai-helper.scss @@ -225,15 +225,6 @@ } // Suggest Titles Related -.suggest-titles-button { - display: block; - align-self: baseline; - background: var(--secondary); - border: 1px solid var(--primary-400); - border-left: none; - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} .showing-ai-suggestions { .title-input { @@ -263,9 +254,9 @@ } } +.suggest-titles-button, .suggest-tags-button, .suggest-category-button { - display: block; align-self: baseline; border: 1px solid var(--primary-400); border-left: none; @@ -299,13 +290,28 @@ #reply-control { .with-category .showing-ai-suggestions .category-input { flex-wrap: nowrap; - .select-kit { - max-width: calc(100% - 2.25em); + max-width: calc(50% - 0.2em); + .category-chooser { + min-width: 0; + flex: 1 1 auto; } } - .with-tags .showing-ai-suggestions .mini-tag-chooser.select-kit { - max-width: calc(100% - 2.25em); + .with-category:not(.with-tags) { + // when tagging is disabled + .showing-ai-suggestions .category-input { + max-width: 40%; + } + } + + .with-tags { + .showing-ai-suggestions .tags-input { + display: flex; + max-width: calc(50% - 0.2em); + .mini-tag-chooser { + min-width: 0; + } + } } }