Skip to content

Commit

Permalink
Revert "fix(view): 각 content title 수정"
Browse files Browse the repository at this point in the history
  • Loading branch information
pcwadarong authored Aug 2, 2024
1 parent c2832ec commit 350d10e
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 38 deletions.
3 changes: 1 addition & 2 deletions packages/view/src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@ body {
display: grid;
grid-template-columns: 4fr 1fr;
height: calc(100vh - 200px);

padding: 20px;
margin-top: 20px;
}
10 changes: 9 additions & 1 deletion packages/view/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@ import { container } from "tsyringe";
import { useEffect, useRef } from "react";
import BounceLoader from "react-spinners/BounceLoader";

import { BranchSelector, Statistics, TemporalFilter, ThemeSelector, VerticalClusterList } from "components";
import {
BranchSelector,
Statistics,
TemporalFilter,
ThemeSelector,
VerticalClusterList,
FilteredAuthors,
} from "components";
import "./App.scss";
import type IDEPort from "ide/IDEPort";
import { useGlobalData } from "hooks";
Expand Down Expand Up @@ -58,6 +65,7 @@ const App = () => {
</div>
<div className="top-container">
<TemporalFilter />
<FilteredAuthors />
</div>
<div className="middle-container">
{filteredData.length !== 0 ? (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
.selected-container {
display: flex;
align-items: center;
gap: 15px;
width: 100%;
}

.selected-content {
position: relative;
top: 30px;
display: flex;
flex-wrap: wrap;
width: 100%;
padding: 4px 6px;
box-sizing: border-box;
}
27 changes: 12 additions & 15 deletions packages/view/src/components/FilteredAuthors/FilteredAuthors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,18 @@ const FilteredAuthors = () => {

return (
<div className="selected-container">
{selectedClusters.length > 0 && <p>Authors:</p>}
<div className="selected-content">
{authSrcMap &&
selectedClusters.map((selectedCluster) => {
return selectedCluster.summary.authorNames.map((authorArray: string[]) => {
return authorArray.map((authorName: string) => (
<Author
key={authorName}
name={authorName}
src={authSrcMap[authorName]}
/>
));
});
})}
</div>
{authSrcMap &&
selectedClusters.map((selectedCluster) => {
return selectedCluster.summary.authorNames.map((authorArray: string[]) => {
return authorArray.map((authorName: string) => (
<Author
key={authorName}
name={authorName}
src={authSrcMap[authorName]}
/>
));
});
})}
</div>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const FileIcicleSummary = () => {

return (
<div className="file-icicle-summary">
<p>File Summary</p>
<p>File Icicle Summary</p>
<svg ref={$summary} />
</div>
);
Expand Down
1 change: 1 addition & 0 deletions packages/view/src/components/Statistics/Statistics.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
flex-direction: column;
align-items: center;
gap: 5vh;
padding: 20px;
width: 350px;
overflow-y: scroll;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
.vertical-cluster-list {
display: flex;
flex-direction: column;
}

.vertical-cluster-list__content {
display: flex;
flex-direction: row;
height: 100%;
overflow-x: hidden;
overflow-y: scroll;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import "./VerticalClusterList.scss";

import { FilteredAuthors } from "components/FilteredAuthors";

import { ClusterGraph } from "./ClusterGraph";
import { Summary } from "./Summary";

const VerticalClusterList = () => {
return (
<div className="vertical-cluster-list">
<FilteredAuthors />
<div className="vertical-cluster-list__content">
<ClusterGraph />
<Summary />
</div>
<ClusterGraph />
<Summary />
</div>
);
};
Expand Down

0 comments on commit 350d10e

Please sign in to comment.