From b8e942a1457e4e4e43ea1dfcf56d7d5a5b775661 Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Mon, 9 May 2022 14:37:34 +0300 Subject: [PATCH] Corrected No date. Fix Status and Priority editors. Little fixes. (#1697) Signed-off-by: Alexander Platov --- .../src/components/AttributeBarEditor.svelte | 2 + .../src/components/AttributesBar.svelte | 1 - packages/theme/styles/components.scss | 3 +- .../calendar/DateRangePresenter.svelte | 6 +- .../src/components/CreateCustomer.svelte | 13 -- .../src/components/YesNo.svelte | 110 ++++++-------- .../review/CreateReviewCategory.svelte | 20 ++- .../src/components/todos/CreateTodo.svelte | 2 +- plugins/tracker-assets/lang/ru.json | 2 +- .../src/components/PrioritySelector.svelte | 60 +++----- .../src/components/StatusSelector.svelte | 59 +++----- .../src/components/issues/EditIssue.svelte | 142 ++++++++---------- .../components/issues/PriorityEditor.svelte | 15 +- .../src/components/issues/StatusEditor.svelte | 18 ++- .../src/components/ActionsPopup.svelte | 13 +- .../src/components/BooleanEditor.svelte | 62 +++++--- 16 files changed, 239 insertions(+), 289 deletions(-) diff --git a/packages/presentation/src/components/AttributeBarEditor.svelte b/packages/presentation/src/components/AttributeBarEditor.svelte index bca74df694..dc4a4549b4 100644 --- a/packages/presentation/src/components/AttributeBarEditor.svelte +++ b/packages/presentation/src/components/AttributeBarEditor.svelte @@ -133,6 +133,8 @@ placeholder={attribute?.label} kind={'link'} size={'large'} + width={'100%'} + justify={'left'} type={attribute?.type} {maxWidth} value={getAttribute(client, object, { key: attributeKey, attr: attribute })} diff --git a/packages/presentation/src/components/AttributesBar.svelte b/packages/presentation/src/components/AttributesBar.svelte index da9c1dfd1a..6ac852b0bf 100644 --- a/packages/presentation/src/components/AttributesBar.svelte +++ b/packages/presentation/src/components/AttributesBar.svelte @@ -69,7 +69,6 @@ &.vertical { display: grid; grid-template-columns: 1fr 1.5fr; - grid-template-rows: minmax(2rem, auto); grid-auto-flow: row; justify-content: start; align-items: center; diff --git a/packages/theme/styles/components.scss b/packages/theme/styles/components.scss index d11d6363f9..b331e04429 100644 --- a/packages/theme/styles/components.scss +++ b/packages/theme/styles/components.scss @@ -427,7 +427,8 @@ // THead background-color in Tooltip and Popups .popup-tooltip .antiTable .scroller-thead, -.popup .antiTable .scroller-thead { background-color: var(--accent-bg-color); } +.popup .antiTable .scroller-thead, +.antiDialogs .antiTable .scroller-thead { background-color: var(--accent-bg-color); } // Hide row menu in Tooltip .popup-tooltip .antiTable .antiTable-body__row:hover .antiTable-cells__firstCell .antiTable-cells__firstCell-menuRow { visibility: hidden; } diff --git a/packages/ui/src/components/calendar/DateRangePresenter.svelte b/packages/ui/src/components/calendar/DateRangePresenter.svelte index 0ceb0e5c6e..d072974b4b 100644 --- a/packages/ui/src/components/calendar/DateRangePresenter.svelte +++ b/packages/ui/src/components/calendar/DateRangePresenter.svelte @@ -22,7 +22,7 @@ import DPCalendarOver from './icons/DPCalendarOver.svelte' import DateRangePopup from './DateRangePopup.svelte' - export let value: number | null | undefined + export let value: number | null | undefined = null export let withTime: boolean = false export let editable: boolean = false export let icon: 'normal' | 'warning' | 'overdue' = 'normal' @@ -363,10 +363,10 @@
- {#if value !== null && value !== undefined} + {#if value !== undefined && value !== null && value.toString() !== ''} {#if labelOver !== undefined}