Skip to content

Commit 01e16ad

Browse files
Increases gap between start work and create branch buttons
1 parent 92b0605 commit 01e16ad

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/webviews/apps/plus/home/components/launchpad.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export class GlLaunchpad extends SignalWatcher(LitElement) {
155155
<gl-section>
156156
<span slot="heading">GitLens Launchpad</span>
157157
<div class="summary">${this.renderSummaryResult()}</div>
158-
<button-container>
158+
<button-container gap="wide">
159159
<gl-button full class="start-work" href=${this.startWorkCommand}>Start Work on an Issue</gl-button>
160160
<gl-button
161161
appearance="secondary"

src/webviews/apps/shared/components/button-container.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ export class ButtonContainer extends LitElement {
88
elementBase,
99
css`
1010
:host {
11+
--button-group-gap: 0.4rem;
12+
--button-group-wide-gap: 1rem;
1113
display: block;
1214
max-width: 30rem;
1315
margin-right: auto;
@@ -24,16 +26,23 @@ export class ButtonContainer extends LitElement {
2426
2527
.group {
2628
display: inline-flex;
27-
gap: 0.4rem;
29+
gap: var(--button-group-gap);
2830
width: 100%;
2931
max-width: 30rem;
3032
}
33+
34+
:host([gap='wide']) .group {
35+
gap: var(--button-group-wide-gap);
36+
}
3137
`,
3238
];
3339

3440
@property({ type: Boolean })
3541
editor = false;
3642

43+
@property({ reflect: true })
44+
gap?: 'wide';
45+
3746
override render() {
3847
return html`<div class="group"><slot></slot></div>`;
3948
}

0 commit comments

Comments
 (0)