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} - - - - change('title', object?.title)} - /> - change('description', evt.detail)} - /> - change('assignee', object?.assignee)} - /> - + + + + + {#if currentTeam} + + {/if} + + + + + change('title', issue?.title)} + /> + + + change('description', evt.detail)} + /> + + + + + + {#if issue && currentTeam && issueStatuses} + + + {issueLabel} + + copy(window.location.href)} + /> + issueLabel && copy(issueLabel)} + /> + + + + + + + + + + + + + + + + + + + + + + + change('assignee', issue?.assignee)} + /> + + + + + + + + + + + + + + + + + + + + {/if} {/if} + + diff --git a/plugins/tracker-resources/src/plugin.ts b/plugins/tracker-resources/src/plugin.ts index 8927cd5c2b..0c931d60f7 100644 --- a/plugins/tracker-resources/src/plugin.ts +++ b/plugins/tracker-resources/src/plugin.ts @@ -104,7 +104,10 @@ export default mergeIds(trackerId, tracker, { IssueTitlePlaceholder: '' as IntlString, IssueDescriptionPlaceholder: '' as IntlString, Unassigned: '' as IntlString, - AddIssueTooltip: '' as IntlString + AddIssueTooltip: '' as IntlString, + + CopyIssueUrl: '' as IntlString, + CopyIssueId: '' as IntlString }, component: { NopeComponent: '' as AnyComponent,