Skip to content

Commit a001a29

Browse files
authored
fix(view): fix the header elements layout (#906) (#948)
1 parent ae15287 commit a001a29

2 files changed

Lines changed: 30 additions & 10 deletions

File tree

packages/view/src/App.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ body {
1414
padding: 0 0.75rem 0 1.25rem;
1515
}
1616

17+
.header-container > :is(:first-child, :last-child) {
18+
flex: 1;
19+
}
20+
21+
.header-container > :last-child {
22+
display: flex;
23+
justify-content: flex-end;
24+
align-items: center;
25+
gap: 0.5rem;
26+
}
27+
1728
.top-container {
1829
height: 13.75rem;
1930
}

packages/view/src/App.tsx

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ import { useEffect, useRef, useState } from "react";
44
import BounceLoader from "react-spinners/BounceLoader";
55

66
import MonoLogo from "assets/monoLogo.svg";
7-
import { BranchSelector, Statistics, TemporalFilter, ThemeSelector, VerticalClusterList, FolderActivityFlow } from "components";
7+
import {
8+
BranchSelector,
9+
Statistics,
10+
TemporalFilter,
11+
ThemeSelector,
12+
VerticalClusterList,
13+
FolderActivityFlow,
14+
} from "components";
815
import "./App.scss";
916
import type IDEPort from "ide/IDEPort";
1017
import { useAnalayzedData } from "hooks";
@@ -69,14 +76,16 @@ const App = () => {
6976
<div className="header-container">
7077
<ThemeSelector />
7178
<BranchSelector />
72-
<RefreshButton />
73-
<button
74-
type="button"
75-
className="folder-activity-flow-button"
76-
onClick={handleOpenFolderActivityFlowModal}
77-
>
78-
Folder Activity Flow
79-
</button>
79+
<div>
80+
<RefreshButton />
81+
<button
82+
type="button"
83+
className="folder-activity-flow-button"
84+
onClick={handleOpenFolderActivityFlowModal}
85+
>
86+
Folder Activity Flow
87+
</button>
88+
</div>
8089
</div>
8190
<div className="top-container">
8291
<TemporalFilter />
@@ -103,7 +112,7 @@ const App = () => {
103112
className="folder-activity-flow-modal"
104113
onClick={handleCloseFolderActivityFlowModal}
105114
onKeyDown={(e) => {
106-
if (e.key === 'Escape') {
115+
if (e.key === "Escape") {
107116
handleCloseFolderActivityFlowModal();
108117
}
109118
}}

0 commit comments

Comments
 (0)