From 2821777e93786302079bccb3401bdfb6e583bbaa Mon Sep 17 00:00:00 2001 From: Fayaz Ahmed <15716057+fayazara@users.noreply.github.com> Date: Wed, 8 Sep 2021 15:07:24 +0530 Subject: [PATCH] feat: Add multiline support for channel greeting message (#2952) --- .../assets/scss/views/settings/inbox.scss | 14 ++-- .../dashboard/settings/inbox/Settings.vue | 35 +++++---- .../settings/inbox/channels/Website.vue | 44 ++++++----- .../shared/components/GreetingsEditor.vue | 78 +++++++++++++++++++ .../hook_execution_service.rb | 3 + .../hook_execution_service_spec.rb | 57 +++++++++----- 6 files changed, 174 insertions(+), 57 deletions(-) create mode 100644 app/javascript/shared/components/GreetingsEditor.vue diff --git a/app/javascript/dashboard/assets/scss/views/settings/inbox.scss b/app/javascript/dashboard/assets/scss/views/settings/inbox.scss index cc2abcf9b..e3b45726f 100644 --- a/app/javascript/dashboard/assets/scss/views/settings/inbox.scss +++ b/app/javascript/dashboard/assets/scss/views/settings/inbox.scss @@ -71,7 +71,6 @@ } &.over { - &::after { background: $color-woot; } @@ -80,7 +79,7 @@ background: $color-woot; } - &+.item { + & + .item { &::before { background: $color-woot; } @@ -132,10 +131,13 @@ @include padding($space-medium); @include border-light; @include full-height(); + + &.height-auto { + height: auto; + } } .inoboxes-list { - .inbox-item { @include margin($space-normal); @include flex; @@ -189,9 +191,9 @@ align-self: center; color: $medium-gray; font-size: $font-size-small; - opacity: .7; + opacity: 0.7; transform: translateX(0); - transition: opacity 0.100s ease-in 0s, transform 0.200s ease-in 0.030s; + transition: opacity 0.1s ease-in 0s, transform 0.2s ease-in 0.03s; } } } @@ -226,7 +228,7 @@ @include padding($space-medium); } - >a>img { + > a > img { width: $space-larger * 5; } } diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue index 6357f67fd..686497baa 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue @@ -102,11 +102,9 @@ }}

- - -