From aa397a1ae7296a207efc0753be22409be57d45d4 Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Wed, 13 Oct 2021 23:04:18 +0300 Subject: [PATCH] New Kanban card layout, fix error position in Card (#274) Signed-off-by: Alexander Platov --- .../presentation/src/components/Card.svelte | 1 + packages/theme/styles/_layouts.scss | 27 +++ .../ui/src/components/icons/Attachment.svelte | 2 +- packages/ui/src/components/icons/File.svelte | 2 +- .../ui/src/components/icons/Thread.svelte | 2 +- .../src/components/AttachmentPresenter.svelte | 4 +- .../src/components/CreateApplication.svelte | 7 +- .../src/components/KanbanCard copy.svelte | 169 ++++++++++++++++++ .../src/components/KanbanCard.svelte | 129 +++---------- .../src/components/KanbanPanel.svelte | 6 +- .../src/components/KanbanPanelEmpty.svelte | 2 +- .../src/components/KanbanView.svelte | 1 + 12 files changed, 231 insertions(+), 121 deletions(-) create mode 100644 plugins/recruit-resources/src/components/KanbanCard copy.svelte diff --git a/packages/presentation/src/components/Card.svelte b/packages/presentation/src/components/Card.svelte index a30ad6fb8d..5a24f4af50 100644 --- a/packages/presentation/src/components/Card.svelte +++ b/packages/presentation/src/components/Card.svelte @@ -80,6 +80,7 @@ .error { position: absolute; + display: flex; top: 3.25rem; left: 1.75rem; right: 1.75rem; diff --git a/packages/theme/styles/_layouts.scss b/packages/theme/styles/_layouts.scss index 3d600f5ee4..32f1d63ffd 100644 --- a/packages/theme/styles/_layouts.scss +++ b/packages/theme/styles/_layouts.scss @@ -136,6 +136,25 @@ table { align-items: stretch; } +/* --------- */ +.sm-tool-icon { + display: flex; + align-items: center; + color: var(--theme-caption-color); + cursor: pointer; + .icon { + margin-right: .25rem; + color: var(--theme-content-dark-color); + } + &:hover .icon { color: var(--theme-caption-color); } +} + +.step-lr75 + .step-lr75 { margin-left: .75rem; } +.step-tb75 + .step-tb75 { margin-top: .75rem; } + +.ml-2 { margin-left: .5rem; } + +/* --------- */ .relative { position: relative; } .abs-lt-content { position: absolute; @@ -187,8 +206,16 @@ table { width: 1.715em; height: 1.715em; } +.svg-small, .svg-medium, .svg-large { flex-shrink: 0; } /* Text */ +.fs-title { + font-weight: 500; + font-size: 1rem; + color: var(--theme-caption-color); +} +.fs-subtitle { font-size: .75rem; } + .hidden-text { position: absolute; visibility: hidden; diff --git a/packages/ui/src/components/icons/Attachment.svelte b/packages/ui/src/components/icons/Attachment.svelte index 9a27dfa318..d7173e4d1c 100644 --- a/packages/ui/src/components/icons/Attachment.svelte +++ b/packages/ui/src/components/icons/Attachment.svelte @@ -16,7 +16,7 @@ diff --git a/packages/ui/src/components/icons/File.svelte b/packages/ui/src/components/icons/File.svelte index d5e45d7cf2..561280061c 100644 --- a/packages/ui/src/components/icons/File.svelte +++ b/packages/ui/src/components/icons/File.svelte @@ -16,7 +16,7 @@ diff --git a/packages/ui/src/components/icons/Thread.svelte b/packages/ui/src/components/icons/Thread.svelte index a3c40386ea..6dcd755ad9 100644 --- a/packages/ui/src/components/icons/Thread.svelte +++ b/packages/ui/src/components/icons/Thread.svelte @@ -16,7 +16,7 @@ diff --git a/plugins/chunter-resources/src/components/AttachmentPresenter.svelte b/plugins/chunter-resources/src/components/AttachmentPresenter.svelte index 5f314367c9..dfd12a2439 100644 --- a/plugins/chunter-resources/src/components/AttachmentPresenter.svelte +++ b/plugins/chunter-resources/src/components/AttachmentPresenter.svelte @@ -35,8 +35,8 @@ {#if value.attachments && Object.keys(value.attachments).length > 0} -
-  {Object.keys(value.attachments).length} +
+ {Object.keys(value.attachments).length}
{/if} diff --git a/plugins/recruit-resources/src/components/CreateApplication.svelte b/plugins/recruit-resources/src/components/CreateApplication.svelte index a4ca5a9a43..a7e8afc8f8 100644 --- a/plugins/recruit-resources/src/components/CreateApplication.svelte +++ b/plugins/recruit-resources/src/components/CreateApplication.svelte @@ -100,11 +100,8 @@ spacePlaceholder={'Select vacancy'} bind:space={_space} on:close={() => { dispatch('close') }}> - - {#if status !== OK} - - {/if} - + + {#if !preserveCandidate} diff --git a/plugins/recruit-resources/src/components/KanbanCard copy.svelte b/plugins/recruit-resources/src/components/KanbanCard copy.svelte new file mode 100644 index 0000000000..27ffe5fcc1 --- /dev/null +++ b/plugins/recruit-resources/src/components/KanbanCard copy.svelte @@ -0,0 +1,169 @@ + + + + +
+
+
+
+
+ +
+
+
+
{formatName(object.$lookup?.candidate?.name)}
+
{object.$lookup?.candidate?.city ?? ''}
+
+
+ +
+
+
+ +
+ + diff --git a/plugins/recruit-resources/src/components/KanbanCard.svelte b/plugins/recruit-resources/src/components/KanbanCard.svelte index 27ffe5fcc1..c95be865b0 100644 --- a/plugins/recruit-resources/src/components/KanbanCard.svelte +++ b/plugins/recruit-resources/src/components/KanbanCard.svelte @@ -15,7 +15,7 @@
-
-
-
- -
-
-
-
{formatName(object.$lookup?.candidate?.name)}
-
{object.$lookup?.candidate?.city ?? ''}
-
-
- -
-
-
-