diff --git a/src/webviews/apps/plus/patchDetails/components/gl-draft-details.ts b/src/webviews/apps/plus/patchDetails/components/gl-draft-details.ts index c8a8c51..dbb9d07 100644 --- a/src/webviews/apps/plus/patchDetails/components/gl-draft-details.ts +++ b/src/webviews/apps/plus/patchDetails/components/gl-draft-details.ts @@ -151,12 +151,10 @@ export class GlDraftDetails extends GlTreeBase { description = description.trim(); return html` -
-
-

- ${unsafeHTML(description)} -

-
+
+

+ ${unsafeHTML(description)} +

`; } @@ -335,29 +333,26 @@ export class GlDraftDetails extends GlTreeBase { //
${getActions()}
//
return html` - - Apply -
-

- - Apply Patch - - - - Apply to a Branch - - - - -

-
-
+
+

+ + Apply Patch + + + + Apply to a Branch + + + + +

+
`; } @@ -409,36 +404,39 @@ export class GlDraftDetails extends GlTreeBase { return html`
-
-
-
-
-
- ${when( - this.state?.draft?.draftType === 'cloud', - () => html` - - - Copy Link - `, - () => html` - Share - `, - )} -
+
+
+
+
+ ${when( + this.state?.draft?.draftType === 'cloud', + () => html` + + + Copy Link + `, + () => html` + Share + `, + )}
-

${this.state.draft?.title}

+ ${when( + this.state.draft?.title != null, + () => html` +

${this.state.draft?.title}

+ ${this.renderPatchMessage()} + `, + )}
- ${this.renderPatchMessage()}
${this.renderChangedFiles()}
diff --git a/src/webviews/apps/plus/patchDetails/components/gl-patch-create.ts b/src/webviews/apps/plus/patchDetails/components/gl-patch-create.ts index 470c7b4..f094cb1 100644 --- a/src/webviews/apps/plus/patchDetails/components/gl-patch-create.ts +++ b/src/webviews/apps/plus/patchDetails/components/gl-patch-create.ts @@ -108,7 +108,7 @@ export class GlPatchCreate extends GlTreeBase { renderForm() { return html` -
+
${when( this.state?.create?.creationError != null, () => @@ -150,19 +150,14 @@ export class GlPatchCreate extends GlTreeBase { return html`
${this.renderChangedFiles()}
-
- Create PatchPREVIEW ☁️${this.renderForm()} -
+
${this.renderForm()}
`; } private renderChangedFiles() { return html` - + Changes to Include ${this.renderLayoutAction(this.fileLayout)} diff --git a/src/webviews/apps/plus/patchDetails/patchDetails.scss b/src/webviews/apps/plus/patchDetails/patchDetails.scss index 2ec33c4..625bcc1 100644 --- a/src/webviews/apps/plus/patchDetails/patchDetails.scss +++ b/src/webviews/apps/plus/patchDetails/patchDetails.scss @@ -23,9 +23,9 @@ gk-menu-item { } .title { - font-size: 1.8rem; + font-size: 1.6rem; font-weight: 600; - margin: 0; + margin: 0.2rem 0 0.8rem; } .message-block__text strong:not(:only-child) { @@ -76,10 +76,16 @@ gk-menu-item { } } -textarea.message-input__control { - resize: vertical; - min-height: 4rem; - max-height: 40rem; +.section--action { + border-top: 1px solid var(--vscode-sideBarSectionHeader-border); + padding: { + top: 1.5rem; + bottom: 1.5rem; + } + + > :first-child { + padding-top: 0; + } } .message-input { @@ -112,6 +118,12 @@ textarea.message-input__control { } } +textarea.message-input__control { + resize: vertical; + min-height: 4rem; + max-height: 40rem; +} + .h { &-spacing { margin-bottom: 1.5rem; @@ -120,6 +132,9 @@ textarea.message-input__control { margin: 0.8rem 0 0.4rem; opacity: 0.8; } + &-no-border { + --vscode-sideBarSectionHeader-border: transparent; + } } .alert {