From 6201c5957145eaf7e3a6f75ff0c22e86cd54bba4 Mon Sep 17 00:00:00 2001 From: Gabriele Panico Date: Mon, 30 Oct 2023 16:00:01 +0100 Subject: [PATCH] minor UI improvements --- .../developer/developer.component.scss | 2 ++ .../cds-action-description.component.scss | 3 ++- .../cds-action-arrow.component.scss | 8 ++++--- .../cds-action-controls.component.html | 4 ++-- .../textarea/textarea.component.scss | 2 +- .../cds-canvas/cds-canvas.component.scss | 2 +- .../cds-intent/cds-intent.component.scss | 7 ++++-- .../panel-intent-controls.component.html | 6 ++--- .../cds-panel-widget.component.html | 2 +- .../cds-header/cds-header.component.html | 2 +- .../utils/cds-popup/cds-popup.component.html | 3 ++- .../utils/cds-popup/cds-popup.component.ts | 23 +++++++++++++++++++ src/assets/sass/cds/_variables.scss | 3 ++- src/assets/sass/cds/styles.scss | 6 ++--- src/index.html | 8 ++++++- 15 files changed, 60 insertions(+), 21 deletions(-) diff --git a/src/app/chatbot-design-studio/cds-chatbot-details/developer/developer.component.scss b/src/app/chatbot-design-studio/cds-chatbot-details/developer/developer.component.scss index 149081eb..df0ef911 100644 --- a/src/app/chatbot-design-studio/cds-chatbot-details/developer/developer.component.scss +++ b/src/app/chatbot-design-studio/cds-chatbot-details/developer/developer.component.scss @@ -48,6 +48,8 @@ input[type="text"] { right: 0px; display: flex; align-items: center; + font-size: 18px; + padding: 5px; &:hover{ cursor: pointer; diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-description/cds-action-description.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-description/cds-action-description.component.scss index 8b13eb1a..da2706fa 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-description/cds-action-description.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-description/cds-action-description.component.scss @@ -15,7 +15,8 @@ border-bottom: 0 !important; .label-action { - color: #6c6859 !important; + font-size: 12px !important; + color: $blu !important; } .icon-action { diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/shared/cds-action-controls/cds-action-arrow/cds-action-arrow.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/shared/cds-action-controls/cds-action-arrow/cds-action-arrow.component.scss index a500929c..f36cdbfd 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/shared/cds-action-controls/cds-action-arrow/cds-action-arrow.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/shared/cds-action-controls/cds-action-arrow/cds-action-arrow.component.scss @@ -1,4 +1,6 @@ - /** ---- V1 ---- **/ +@import "./src/assets/sass/cds/_variables.scss"; + +/** ---- V1 ---- **/ .cds-action-arrow-down-icon-wpr { transition: width 0.15s ease 0s, color 0.15s ease 0s; width: 9px; @@ -11,7 +13,7 @@ height: 6px; position: relative; overflow: hidden; - color: #6c6859; + color: $blu; transform: rotate(90deg); top: 15px; } @@ -49,5 +51,5 @@ .cds-action-arrow-icon{ font-size: 25px; - color: #6c6859; + color: $blu; } diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/shared/cds-action-controls/cds-action-controls/cds-action-controls.component.html b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/shared/cds-action-controls/cds-action-controls/cds-action-controls.component.html index f436af38..6caa548d 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/shared/cds-action-controls/cds-action-controls/cds-action-controls.component.html +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/shared/cds-action-controls/cds-action-controls/cds-action-controls.component.html @@ -1,10 +1,10 @@
- +
- +
diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/base-elements/textarea/textarea.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/base-elements/textarea/textarea.component.scss index ccc9dce3..ddd0c490 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/base-elements/textarea/textarea.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/base-elements/textarea/textarea.component.scss @@ -205,7 +205,7 @@ mat-form-field.box-textarea ::ng-deep { align-items: center; justify-content: center; border-radius: 7px; - margin: 5px; + margin: 3px; height: fit-content; padding: 2px; max-width: calc(100% - 25px); diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-canvas.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-canvas.component.scss index 41de5e60..2fe4d1a3 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-canvas.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-canvas.component.scss @@ -278,7 +278,7 @@ cds-fulfillment { position: relative; display: block; background-size: 16px 16px; - background-image: radial-gradient(rgb(214 226 226 / 60%) 1.14286px, rgb(255 255 255) 1.14286px); + background-image: radial-gradient(rgb(152 153 153 / 40%) 1.14286px, rgb(240 233 233 / 25%) 1.14286px); // background-image: radial-gradient(rgb(218, 226, 226) 1.14286px, rgb(244, 246, 246) 1.14286px); background-position: 593.4px -230.4px; } diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-intent/cds-intent.component.scss b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-intent/cds-intent.component.scss index 1b3466f2..8908ddfe 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-intent/cds-intent.component.scss +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-intent/cds-intent.component.scss @@ -6,6 +6,7 @@ --action-background: #{$action-item-background}; --action-no-featured-backgroud: #{$action-no-featured-item-background}; --intent-background: #{$intent-preview-background}; + --intent-border-color: #{$intent-preview-borderColor}; --intent-header-background: transparent; //#{$deep-brown}; --base-border-radius-preview: #{$border-radius-base-preview}; --base-padding-preview: #{$padding-base-preview}; @@ -25,6 +26,7 @@ background-color: var(--intent-background); padding: var(--base-padding-preview); border-radius: var(--base-border-radius-preview); + outline: 1px solid var(--intent-border-color); &::before { display: block; border-radius: 10px; @@ -51,6 +53,7 @@ background-color: unset; padding: 0; border-radius: unset; + border: unset; max-width: var(--startIntentMaxWith); outline: unset; } @@ -361,7 +364,7 @@ position: relative; min-height: 54px; /* padding: 0px 10px; */ - padding: 5px 0px; + padding: 0px 0px; width: 100%; position: relative; display: flex; @@ -1030,7 +1033,7 @@ cds-panel-intent-header.isStart ::ng-deep{ &[active=true] { img { - filter: brightness(0) saturate(100%) invert(68%) sepia(36%) saturate(6687%) hue-rotate(182deg) brightness(104%) contrast(92%); + filter: brightness(0) saturate(100%) invert(39%) sepia(19%) saturate(1139%) hue-rotate(184deg) brightness(91%) contrast(85%); } } } diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-intent/panel-intent-controls/panel-intent-controls.component.html b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-intent/panel-intent-controls/panel-intent-controls.component.html index d5383bbe..96cc8dcf 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-intent/panel-intent-controls/panel-intent-controls.component.html +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-intent/panel-intent-controls/panel-intent-controls.component.html @@ -13,7 +13,7 @@ #tooltip="matTooltip" matTooltipPosition='above' matTooltipHideDelay="100"> - + @@ -52,7 +52,7 @@ --> - + @@ -65,7 +65,7 @@ #tooltip="matTooltip" matTooltipPosition='above' matTooltipHideDelay="100"> - + diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-panel-widget/cds-panel-widget.component.html b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-panel-widget/cds-panel-widget.component.html index 2ede5510..04ebec36 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-panel-widget/cds-panel-widget.component.html +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-canvas/cds-panel-widget/cds-panel-widget.component.html @@ -10,7 +10,7 @@
- +
Test your Chatbot
Start trying your chatbot and interact with it
diff --git a/src/app/chatbot-design-studio/cds-dashboard/cds-header/cds-header.component.html b/src/app/chatbot-design-studio/cds-dashboard/cds-header/cds-header.component.html index f370dd9e..c8edae11 100644 --- a/src/app/chatbot-design-studio/cds-dashboard/cds-header/cds-header.component.html +++ b/src/app/chatbot-design-studio/cds-dashboard/cds-header/cds-header.component.html @@ -32,7 +32,7 @@
{{ selectedChatbot?.name }}
-
+