Skip to content

Commit

Permalink
fix(portal): remove compare button in api mapping & make left panel s…
Browse files Browse the repository at this point in the history
…crollable
  • Loading branch information
james-tran-3005 committed Dec 9, 2024
1 parent 8f6ed4b commit b9135a1
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const ErrorBrakedownDiagram = ({ props }: Props) => {
return (
<Flex vertical className={styles.contentBox}>
<Flex style={{ paddingBottom: "12px" }}>
<Text.LightMedium>Error brakedown</Text.LightMedium>
<Text.LightMedium>Error breakdown</Text.LightMedium>
</Flex>
<Spin spinning={isLoading || isRefetching}>
{!errorData.length
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,6 @@ const NewAPIMapping = ({
Save
</Button>
</Tooltip>
<Button type="default">Compare</Button>
</>
)}
<DeployStage
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.collapseBox {
flex: 1;

&:global(> .ant-collapse-item) {
&:global(> .ant-collapse-header) {
padding-left: 15px;
Expand All @@ -20,6 +21,7 @@
:global {
.ant-collapse-item {
border-radius: 0 !important;
min-width: fit-content;
}
.ant-collapse-item:has(.hightlight-one) {
background-color: rgba(41, 98, 255, 0.2) !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
width: 300px;
padding: 16px 0;
overflow-y: scroll;

&::-webkit-scrollbar {
display: none;
}
Expand All @@ -20,6 +21,27 @@
.ant-spin-nested-loading {
flex: 1;
min-width: 0;

.ant-spin-container {
display: flex;
overflow-x: auto;


::-webkit-scrollbar {
height: 18px;
}

::-webkit-scrollbar-thumb {
border: 6px solid rgba(0, 0, 0, 0);
background-clip: padding-box;
border-radius: 8px;
background-color: #dde1e5;

&:hover {
background-color: #f7f7f7;
}
}
}
}
}

Expand All @@ -31,11 +53,11 @@
background-color: var(--bg);
cursor: ew-resize;
z-index: 100;

&:hover {
background-color: var(--primary);
}

&.interactive {
position: absolute;
}
Expand All @@ -46,15 +68,18 @@
padding: 0 10px 10px 10px;
border-bottom: 1px solid #dde1e5;
}

.componentIconWrapper {
width: 17px;
border-radius: 5px;
padding: 4px;
background-color: #91d5ff;
> svg {

>svg {
display: block;
}
}

.envItem {
box-sizing: border-box;
flex: 0 0 calc(50% - 4px);
Expand All @@ -63,37 +88,45 @@
background-color: #f0f2f5;
padding: 4px 8px;
}

.list {
width: 100%;

:global(.ant-list-items) {
display: flex;
flex-direction: column;
gap: 8px;
}

:global(.ant-list-item) {
padding: 0;
border-block-end: unset;
}
}

.item {
padding: 2px 24px;
cursor: pointer;
}

.activeItem {
background-color: #e6f7ff;
color: #096dd9;
border-right: 3px solid #2962ff;
}

.modalCreate {
:global {
.ant-modal-confirm-btns {
margin-top: 24px;
}

.ant-modal-content {
padding: 32px !important;
}
}
}

.versionListWrapper {
flex: 1;
min-width: 840px;
Expand All @@ -106,4 +139,4 @@
display: flex;
justify-content: center;
align-items: center;
}
}

0 comments on commit b9135a1

Please sign in to comment.