Skip to content

Commit 297cdd9

Browse files
authored
Merge pull request #265 from devtron-labs/fix/config-diff-compare-height
fix: config diff compare height
2 parents 6e8fa9b + ab89981 commit 297cdd9

File tree

5 files changed

+12
-15
lines changed

5 files changed

+12
-15
lines changed

src/Common/Pagination/Pagination.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ const Pagination = ({
8181
const pageNoIndex = pages.findIndex((page) => page.selected)
8282
const visiblePages = pages.filter((page) => page.isVisible)
8383
return (
84-
// TODO: Remove pagination-wrapper from dashboard
8584
<div className={rootClassName || ''}>
8685
<div className="page-number">
8786
{offset + 1} - {lastPageNo} of {size}

src/Common/Pagination/pagination.scss

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
.pagination-wrapper {
18-
display: flex;
19-
align-items: center;
20-
padding: 0px 24px;
21-
justify-content: space-between;
22-
margin: 0px;
23-
background-color: var(--white);
24-
}
25-
2617
.pagination {
2718
margin-top: 16px;
2819
margin-bottom: 16px;
@@ -99,6 +90,7 @@
9990
background-color: var(--white);
10091
padding: 0px;
10192
user-select: none;
93+
border: none;
10294
}
10395

10496
.page__button--icon {

src/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,9 @@
2020
&__main-content {
2121
height: calc(100vh - 122px);
2222
overflow: auto;
23+
24+
&__comparison {
25+
margin: 16px 0 0;
26+
}
2327
}
2428
}

src/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,20 +147,20 @@ export const DeploymentConfigDiffMain = ({
147147
/>
148148
</>
149149
) : (
150-
<>
151-
<div className="bcn-1 deployment-diff__upper dc__top-radius-4 mt-16 ml-16 mr-16 dc__border-right dc__border-left dc__border-top">
150+
<div className="p-16">
151+
<div className="bcn-1 deployment-diff__upper dc__top-radius-4 dc__border-right dc__border-left dc__border-top">
152152
<div className="px-12 py-6 dc__border-right">{primaryHeading}</div>
153153
<div className="px-12 py-6">{secondaryHeading}</div>
154154
</div>
155155
<DeploymentHistoryDiffView
156156
baseTemplateConfiguration={secondaryList}
157157
currentConfiguration={primaryList}
158158
previousConfigAvailable
159-
rootClassName="m-16 mt-0-imp dc__no-top-radius dc__no-top-border"
160-
comparisonBodyClassName="m-16"
159+
rootClassName="m-0 dc__no-top-radius dc__no-top-border"
160+
comparisonBodyClassName="deployment-config-diff__main-content__comparison"
161161
sortOrder={sortingConfig?.sortOrder}
162162
/>
163-
</>
163+
</div>
164164
)}
165165
</DeploymentConfigDiffAccordion>
166166
)

src/Shared/constants.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,3 +469,5 @@ export enum SelectAllGroupedResourceIdentifiers {
469469
allExistingAndFutureProdEnvironments = '-2',
470470
allExistingAndFutureEnvironments = '-3',
471471
}
472+
473+
export const TRIGGER_STATUS_PROGRESSING = ['progressing', 'initiating', 'running', 'starting']

0 commit comments

Comments
 (0)