Skip to content

Commit 8a6018a

Browse files
committed
Fixes vertical layout issues in graph-next
1 parent 68c5c84 commit 8a6018a

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

src/webviews/apps/plus/graph-next/actions/gitActionsButtons.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ import '../../../shared/components/overlays/tooltip';
1111

1212
@customElement('gl-git-actions-buttons')
1313
export class GitActionsButtons extends LitElement {
14+
static override styles = css`
15+
:host {
16+
display: contents;
17+
}
18+
`;
19+
1420
@property({ type: Object })
1521
branchState?: BranchState;
1622

src/webviews/apps/plus/graph-next/graph.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1413,12 +1413,13 @@ web-graph {
14131413
}
14141414

14151415
&__panes {
1416+
height: 100%;
14161417
}
14171418

14181419
&__graph-pane {
14191420
display: grid;
14201421
grid-template-columns: min-content 1fr;
1421-
grid-template-rows: 1fr;
1422+
grid-template-rows: auto 1fr;
14221423
grid-template-areas: 'minimap minimap' 'sidebar graph';
14231424
height: 100%;
14241425
overflow: hidden;

src/webviews/apps/plus/graph-next/sidebar/sidebar.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ type Counts = Record<IconTypes, number | undefined>;
3434
export class GlGraphSideBar extends LitElement {
3535
static override styles = css`
3636
.sidebar {
37+
box-sizing: border-box;
3738
display: flex;
3839
flex-direction: column;
3940
align-items: center;
@@ -43,7 +44,7 @@ export class GlGraphSideBar extends LitElement {
4344
width: 2.6rem;
4445
font-size: 9px;
4546
font-weight: 600;
46-
height: 100vh;
47+
height: 100%;
4748
padding: 3rem 0;
4849
z-index: 1040;
4950
}

0 commit comments

Comments
 (0)