From 64a41729f70f30ab6dc7db17706b3c8a1bff2b34 Mon Sep 17 00:00:00 2001 From: chapoi <101828855+chapoi@users.noreply.github.com> Date: Thu, 22 Feb 2024 13:42:07 +0200 Subject: [PATCH] UX: chat composer design update (mobile) (#25789) --- .../discourse/components/chat-composer.hbs | 28 ++++++++++++- .../stylesheets/mobile/chat-composer.scss | 39 +++++++++++++++++++ 2 files changed, 65 insertions(+), 2 deletions(-) diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-composer.hbs b/plugins/chat/assets/javascripts/discourse/components/chat-composer.hbs index 6b6e34628b2..ae22abd84ec 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-composer.hbs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-composer.hbs @@ -27,11 +27,20 @@ {{will-destroy this.cancelPersistDraft}} >
-
+ {{#if this.site.mobileView}} + {{/if}} + +
+ {{#if this.site.desktopView}} + + {{/if}}
{{/if}} + {{#if this.site.desktopView}} + + {{/if}} +
+ {{#if this.site.mobileView}} -
+ {{/if}}
diff --git a/plugins/chat/assets/stylesheets/mobile/chat-composer.scss b/plugins/chat/assets/stylesheets/mobile/chat-composer.scss index d6334192c33..093660398f7 100644 --- a/plugins/chat/assets/stylesheets/mobile/chat-composer.scss +++ b/plugins/chat/assets/stylesheets/mobile/chat-composer.scss @@ -1,7 +1,46 @@ .chat-composer { + &__wrapper { + padding-top: 0; + background: none; + } + &__outer-container { + padding: 0; + + .chat-composer.is-disabled { + opacity: 0.5; + } + } + &__inner-container { + min-height: unset; + .chat-composer.is-focused & { + border-color: var(--primary-low); + box-shadow: 0px 0px 2px 0px rgba(10, 173, 255, 0.5); + } + } + &__input-container { + padding: 0.15em 0.5em; + background: var(--primary-very-low); + } &__input { .ios-device & { background-color: transparent; } } + &-button__wrapper { + align-self: unset; + } + &-button.-send { + height: 100%; + width: auto; + align-self: unset; + .d-icon { + padding: 0.5rem; + border-radius: 100%; + + .is-send-enabled.is-focused & { + background-color: var(--tertiary-high); + color: var(--secondary); + } + } + } }