From 741ea0eafd211224fca32b851bf1e42ba3530079 Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Tue, 23 Nov 2021 21:46:06 +0300 Subject: [PATCH] Fix Activity layout (#351) Signed-off-by: Alexander Platov --- packages/theme/styles/_layouts.scss | 8 +++ .../src/components/Activity.svelte | 12 +--- .../src/components/TxView.svelte | 56 +++++++++++-------- .../activity/TxApplicantUpdate.svelte | 35 +++++------- .../src/components/StatePresenter.svelte | 6 +- 5 files changed, 59 insertions(+), 58 deletions(-) diff --git a/packages/theme/styles/_layouts.scss b/packages/theme/styles/_layouts.scss index 1de1aad7e0..e61e0142cc 100644 --- a/packages/theme/styles/_layouts.scss +++ b/packages/theme/styles/_layouts.scss @@ -159,6 +159,14 @@ table { &:hover .icon { color: var(--theme-caption-color); } } +/* Tables */ +// .activity-table > tr:last-child > .no-icon-cell { +// min-height: auto; +// height: auto; +// &::after { content: none; } +// } + +/* Margins & Paddings */ .step-lr75 + .step-lr75 { margin-left: .75rem; } .step-tb75 + .step-tb75 { margin-top: .75rem; } diff --git a/plugins/activity-resources/src/components/Activity.svelte b/plugins/activity-resources/src/components/Activity.svelte index 2bc7f1c635..5499d2e5c1 100644 --- a/plugins/activity-resources/src/components/Activity.svelte +++ b/plugins/activity-resources/src/components/Activity.svelte @@ -13,6 +13,7 @@ // See the License for the specific language governing permissions and // limitations under the License. --> + -{#if tx.operations.state} - updated State to - {#if statePresenter?.presenter} - {#await client.findOne(core.class.State, { _id: tx.operations.state }) then st} - {#if st} - - {/if} - {/await} - {/if} +{#if tx.operations.state} +
+ updated State to + {#if statePresenter?.presenter} + {#await client.findOne(core.class.State, { _id: tx.operations.state }) then st} + {#if st} + + {/if} + {/await} + {/if} +
{/if} - \ No newline at end of file + diff --git a/plugins/view-resources/src/components/StatePresenter.svelte b/plugins/view-resources/src/components/StatePresenter.svelte index aefd8201f1..9a076bbbba 100644 --- a/plugins/view-resources/src/components/StatePresenter.svelte +++ b/plugins/view-resources/src/components/StatePresenter.svelte @@ -30,14 +30,14 @@ display: flex; justify-content: center; align-items: center; - padding: .375rem 1rem; - width: min-content; + padding: .25rem .75rem; + width: fit-content; text-transform: uppercase; font-weight: 500; letter-spacing: .5px; font-size: .625rem; color: #fff; border: 1px solid rgba(0, 0, 0, .1); - border-radius: .5rem; + border-radius: .25rem; }