- {selectedClusterId.includes(clusterId) ? (
-
- ) : (
-
- )}
+
>
);
diff --git a/packages/view/src/components/VerticalClusterList/Summary/Summary.scss b/packages/view/src/components/VerticalClusterList/Summary/Summary.scss
index 731dcb88..65c40018 100644
--- a/packages/view/src/components/VerticalClusterList/Summary/Summary.scss
+++ b/packages/view/src/components/VerticalClusterList/Summary/Summary.scss
@@ -1,6 +1,6 @@
@import "styles/app";
-.cluster-summary__container {
+.vertical-cluster-list__body {
display: flex;
flex-direction: column;
flex-grow: 1;
@@ -9,127 +9,112 @@
height: 100%;
overflow-x: hidden;
overflow-y: scroll;
+}
- .cluster-summary__cluster {
+.cluster-summary {
+ &__item {
display: flex;
align-items: center;
column-gap: 10px;
+ }
- .toggle-contents-button {
- padding: 10px 15px;
- border: none;
- background-color: transparent;
- cursor: pointer;
- color: var(--color-text-white);
- width: 100%;
-
- &:hover {
- border-radius: 40px;
- background-color: lighten($gray-800, 5);
- }
- }
- .cluster-summary__info-wrapper {
- display: flex;
- flex-direction: column;
- width: 100%;
-
- &.selected {
- border-radius: 25px;
- background-color: lighten($gray-900, 5);
- }
- }
+ &__info {
+ display: flex;
+ flex-direction: column;
+ width: 100%;
- .toggle-contents-container {
- display: flex;
- align-items: center;
+ &--is-expanded {
+ border-radius: 25px;
+ background-color: lighten($gray-900, 5);
}
+ }
+}
- :hover .collapsible-icon {
+.summary {
+ display: flex;
+ align-items: center;
+ padding: 10px 15px;
+ border: none;
+ background-color: transparent;
+ cursor: pointer;
+ color: var(--color-text-white);
+ width: 100%;
+
+ &:hover {
+ border-radius: 40px;
+ background-color: lighten($gray-800, 5);
+
+ .summary__toggle {
visibility: visible;
}
+ }
- .collapsible-icon {
- display: flex;
- align-items: center;
- justify-content: center;
- margin-left: 8px;
- background-color: transparent;
- border: none;
- font-size: 24px;
- color: var(--color-primary);
- visibility: hidden;
- cursor: pointer;
+ &__author {
+ display: flex;
+ justify-content: center;
+ }
- & .show {
- visibility: visible;
- transform: rotate(180deg);
- }
- }
+ &__content {
+ flex-grow: 1;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ font-size: $font-size-body;
+ gap: 10px;
+ }
+
+ &__commit-message {
+ flex-grow: 1;
+ padding-left: 15px;
+ text-align: left;
+ cursor: pointer;
+ // "width: 0" makes the "commit-message" ellipsis reponsive
+ width: 0;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+
+ &__commit-link {
+ text-decoration: none;
+ color: var(--color-light-gray);
- .name-box {
- display: flex;
- justify-content: center;
+ &:visited {
+ color: var(--color-light-gray);
}
+
+ &:hover {
+ color: var(--color-primary);
+ }
+ }
+
+ &__more-commit {
+ text-align: right;
+ font-size: $font-size-caption;
+ }
- .cluster-summary__contents {
- flex-grow: 1;
- display: flex;
- align-items: center;
- justify-content: space-between;
- font-size: $font-size-body;
- gap: 10px;
-
- .commit-message__wrapper {
- flex-grow: 1;
- padding-left: 15px;
- text-align: left;
- cursor: pointer;
- // "width: 0" makes the "commit-message" ellipsis reponsive
- width: 0;
-
- .commit-message {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
-
- a {
- text-decoration: none;
- color: var(--color-light-gray);
- &:visited {
- color: var(--color-light-gray);
- }
- &:hover {
- color: var(--color-primary);
- }
- }
- }
- }
-
- .more-commit-count {
- text-align: right;
- font-size: $font-size-caption;
- }
+ &__toggle {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-left: 8px;
+ background-color: transparent;
+ border: none;
+ font-size: 24px;
+ color: var(--color-primary);
+ visibility: hidden;
+ cursor: pointer;
+
+ &--visible {
+ visibility: visible;
+ transform: rotate(180deg);
}
}
}
-.cluster-graph {
- display: block;
-}
-.detail__container {
+.detail {
overflow: auto;
height: 220px;
max-height: 280px;
padding: 10px 30px;
}
-
-.sort-button {
- color: var(--color-primary);
- cursor: pointer;
- position: absolute;
- right: 26%;
- top: 34%;
- &:hover {
- color: white;
- }
-}
diff --git a/packages/view/src/components/VerticalClusterList/Summary/Summary.tsx b/packages/view/src/components/VerticalClusterList/Summary/Summary.tsx
index 6faa1b60..c28dab59 100644
--- a/packages/view/src/components/VerticalClusterList/Summary/Summary.tsx
+++ b/packages/view/src/components/VerticalClusterList/Summary/Summary.tsx
@@ -59,48 +59,41 @@ const Summary = () => {
-
+
-
+