From 4b159e929606fa8306886ab8d24cefbfed3346e0 Mon Sep 17 00:00:00 2001 From: Keegan George Date: Mon, 5 May 2025 09:27:28 -0700 Subject: [PATCH] UX: New topic button shouldn't appear in AI conversations page (#152) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## :mag: Overview This update ensures that the sidebar new topic button isn't shown on the AI conversations sidebar. It also styles the new conversation button to make use of Horizon's accent color ## 📸 Screenshots ### ← Before Screenshot 2025-05-02 at 14 16 41 ### → After Screenshot 2025-05-02 at 14 15 34 --- scss/buttons.scss | 3 ++- scss/sidebar-new-topic-button.scss | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/scss/buttons.scss b/scss/buttons.scss index e612624..cdc74a6 100644 --- a/scss/buttons.scss +++ b/scss/buttons.scss @@ -58,7 +58,8 @@ } .btn-primary, -#create-topic.btn { +#create-topic.btn, +.discourse-no-touch .btn-default.ai-new-question-button { background-color: var(--accent-color); color: var(--accent-text-color); .d-icon { diff --git a/scss/sidebar-new-topic-button.scss b/scss/sidebar-new-topic-button.scss index b3169b5..b77a83c 100644 --- a/scss/sidebar-new-topic-button.scss +++ b/scss/sidebar-new-topic-button.scss @@ -5,6 +5,12 @@ } } +.has-ai-conversations-sidebar { + .sidebar-new-topic-button__wrapper { + display: none; + } +} + .sidebar-new-topic-button { flex: 1 1 auto;