From 9cecb990eead7ac36d17910a4dc9b4088aabc3ca Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Sun, 15 May 2022 07:50:49 +0300 Subject: [PATCH] Fix Activity layout. (#1757) Signed-off-by: Alexander Platov --- packages/theme/styles/common.scss | 2 +- .../src/components/Activity.svelte | 8 +++--- .../src/components/EditChannel.svelte | 25 +++++++++++-------- 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/packages/theme/styles/common.scss b/packages/theme/styles/common.scss index 05b7a484f6..15736a26b4 100644 --- a/packages/theme/styles/common.scss +++ b/packages/theme/styles/common.scss @@ -257,5 +257,5 @@ margin: .25rem 0; min-height: 1px; height: 1px; - background-color: var(--highlight-select-border); + background-color: var(--divider-color); } diff --git a/plugins/activity-resources/src/components/Activity.svelte b/plugins/activity-resources/src/components/Activity.svelte index e1839f05e6..57daeb2de2 100644 --- a/plugins/activity-resources/src/components/Activity.svelte +++ b/plugins/activity-resources/src/components/Activity.svelte @@ -88,7 +88,7 @@ {:else} -
+
@@ -117,14 +117,14 @@ align-items: center; min-height: 2.5rem; height: 2.5rem; - background-color: var(--highlight-select); - border: 1px solid var(--highlight-select-border); + background-color: var(--accent-bg-color); + border: 1px solid var(--divider-color); border-radius: 0.125rem; } .icon { margin-left: 1rem; height: 2rem; - color: var(--primary-bg-color); + color: var(--caption-color); } .ref-input { flex-shrink: 0; diff --git a/plugins/chunter-resources/src/components/EditChannel.svelte b/plugins/chunter-resources/src/components/EditChannel.svelte index 71e7dbe82b..f61636d339 100644 --- a/plugins/chunter-resources/src/components/EditChannel.svelte +++ b/plugins/chunter-resources/src/components/EditChannel.svelte @@ -70,17 +70,22 @@ > {#if clazz && channel} -
-
- {#if clazz.icon}{/if} + {#if _class === chunter.class.DirectMessage} + + {:else} +
+
+ {#if clazz.icon}{/if} +
+
+ + + {channel.name} + + {channel.description} +
-
- {channel.name} - {channel.description} -
-
+ {/if} {/if}