From 91b9543599afd7c9c6dbb802691a683d6c9e8417 Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Mon, 13 Sep 2021 12:55:08 +0300 Subject: [PATCH] Fix Panel and Channels (#189) Signed-off-by: Alexander Platov --- packages/panel/src/components/Panel.svelte | 92 ++++++++++--------- .../src/components/Channels.svelte | 5 +- .../src/components/EditCandidate.svelte | 2 +- 3 files changed, 55 insertions(+), 44 deletions(-) diff --git a/packages/panel/src/components/Panel.svelte b/packages/panel/src/components/Panel.svelte index cb1ccbde1d..2797c71f2f 100644 --- a/packages/panel/src/components/Panel.svelte +++ b/packages/panel/src/components/Panel.svelte @@ -64,15 +64,21 @@
{title}
- {#if $$slots.subtitle}
{/if} -
+ {#if $$slots.subtitle}
{/if} +
+ +
+ +
+
+
Activity
-
+
{#if comments} @@ -97,14 +103,16 @@
{title}
- {#if $$slots.subtitle}
{/if} + {#if $$slots.subtitle}
{/if} -
+
+ +
Activity
-
+
{#if comments} {#each comments as comment} @@ -160,8 +168,6 @@ .subtitle { flex-shrink: 0; - display: flex; - align-items: center; padding: 0 2rem; height: 3.5rem; border-bottom: 1px solid var(--theme-card-divider); @@ -174,52 +180,56 @@ display: flex; flex-direction: column; height: max-content; - } - .content { - overflow: visible; - display: flex; - flex-direction: column; - padding: 1.5rem 2.5rem; - height: max-content; - } - .activity { - background-color: var(--theme-bg-accent-color); - &.header { border-bottom: none; } - &.content { - flex-grow: 1; - padding-bottom: 0; + + .content { + flex-shrink: 0; + display: flex; + flex-direction: column; + padding: 1.5rem 2.5rem; + height: max-content; + } + .activity { background-color: var(--theme-bg-accent-color); + &.header { border-bottom: none; } + &.content { + flex-grow: 1; + padding-bottom: 0; + background-color: var(--theme-bg-accent-color); + } } } .fullSize { flex-direction: row; left: 1.5rem; + } - .leftSection, .rightSection { - flex-basis: 50%; - display: flex; - flex-direction: column; - } - .leftSection { - border-right: 1px solid var(--theme-bg-accent-hover); + .leftSection, .rightSection { + flex-basis: 50%; + display: flex; + flex-direction: column; + } + .leftSection { + border-right: 1px solid var(--theme-bg-accent-hover); + .scroll-container { + flex-grow: 1; + padding: 2rem 2rem 1rem; .content { flex-grow: 1; - margin-top: 2.5rem; - } - } - .rightSection { - background-color: transparent; - .header { border-bottom: 1px solid var(--theme-card-divider); } - .content { - flex-grow: 1; - padding-top: 2.5rem; - padding-bottom: 0; - background-color: var(--theme-bg-accent-color); + padding: .5rem .5rem .5rem; } } } - + .rightSection { + background-color: transparent; + .header { border-bottom: 1px solid var(--theme-card-divider); } + .content { + flex-grow: 1; + padding: 2.5rem 2.5rem 0; + background-color: var(--theme-bg-accent-color); + } + } + .ref-input { background-color: var(--theme-bg-accent-color); padding: 1.5rem 2.5rem; diff --git a/packages/presentation/src/components/Channels.svelte b/packages/presentation/src/components/Channels.svelte index f3590f2b1f..108170ff17 100644 --- a/packages/presentation/src/components/Channels.svelte +++ b/packages/presentation/src/components/Channels.svelte @@ -74,7 +74,7 @@
-
+
@@ -162,7 +162,6 @@ justify-content: space-between; padding: 1rem; top: 2.25rem; - right: 0; min-width: 100%; background-color: var(--theme-button-bg-focused); border: 1px solid var(--theme-button-border-enabled); @@ -174,6 +173,8 @@ z-index: 4; visibility: visible; } + &.right { right: 0; } + &.left { left: 0; } } } .label { diff --git a/plugins/recruit-resources/src/components/EditCandidate.svelte b/plugins/recruit-resources/src/components/EditCandidate.svelte index 3f7ff5623c..4d74b9c505 100644 --- a/plugins/recruit-resources/src/components/EditCandidate.svelte +++ b/plugins/recruit-resources/src/components/EditCandidate.svelte @@ -50,8 +50,8 @@ { dispatch('close') }}>
- showPopup(SocialEditor, { values: object.channels ?? [] }, ev.target, (result) => { saveChannels(result) })} /> + showPopup(SocialEditor, { values: object.channels ?? [] }, ev.target, (result) => { saveChannels(result) })} />