From 034986627ee2893aa78b1fecb3f3dd5e45044c8d Mon Sep 17 00:00:00 2001 From: Sergei Ogorelkov Date: Tue, 26 Apr 2022 18:19:26 +0700 Subject: [PATCH] Add right panel to the EditIssue dialog (#1272) (#1546) Signed-off-by: Sergei Ogorelkov --- packages/theme/styles/_layouts.scss | 5 +- plugins/tracker-assets/lang/en.json | 4 +- .../src/components/issues/EditIssue.svelte | 272 ++++++++++++++---- plugins/tracker-resources/src/plugin.ts | 5 +- 4 files changed, 226 insertions(+), 60 deletions(-) diff --git a/packages/theme/styles/_layouts.scss b/packages/theme/styles/_layouts.scss index e770439ec9..00e9215050 100644 --- a/packages/theme/styles/_layouts.scss +++ b/packages/theme/styles/_layouts.scss @@ -342,6 +342,7 @@ p:last-child { margin-block-end: 0; } .mx-1 { margin: 0 .25rem; } .mx-2 { margin: 0 .5rem; } .mx-3 { margin: 0 .75rem; } +.mx-auto { margin: 0 auto; } .my-4 { margin: 1rem 0; } .pl-1 { padding-left: .25rem; } @@ -421,14 +422,16 @@ p:last-child { margin-block-end: 0; } .w-9 { width: 2.25rem; } .w-14 { width: 3.5rem; } .w-16 { width: 4rem; } +.w-24 { width: 6rem; } .w-60 { width: 15rem; } .w-85 { width: 21.25rem; } .w-165 { width: 41.25rem; } .min-w-0 { min-width: 0; } .min-w-4 { min-width: 1rem; } .min-w-9 { min-width: 2.25rem; } -.min-h-0 { min-height: 0; } +.min-w-80 { min-width: 20rem; } .min-w-min { min-width: min-content; } +.min-h-0 { min-height: 0; } .max-h-125 { max-height: 31.25rem; } .clear-mins { min-width: 0; diff --git a/plugins/tracker-assets/lang/en.json b/plugins/tracker-assets/lang/en.json index de73afb696..0971ea1610 100644 --- a/plugins/tracker-assets/lang/en.json +++ b/plugins/tracker-assets/lang/en.json @@ -78,7 +78,9 @@ "DueDate": "Due date", "All": "All", "PastWeek": "Past week", - "PastMonth": "Past month" + "PastMonth": "Past month", + "CopyIssueUrl": "Copy Issue URL to clipboard", + "CopyIssueId": "Copy Issue ID to clipboard" }, "status": {} } \ No newline at end of file diff --git a/plugins/tracker-resources/src/components/issues/EditIssue.svelte b/plugins/tracker-resources/src/components/issues/EditIssue.svelte index 6cecece17b..c225ec23c5 100644 --- a/plugins/tracker-resources/src/components/issues/EditIssue.svelte +++ b/plugins/tracker-resources/src/components/issues/EditIssue.svelte @@ -1,66 +1,88 @@ -{#if object !== undefined} +{#if issue !== undefined} - - {#if currentTeam} - - {/if} -