Skip to content

Commit 5a38d47

Browse files
author
Mukul Tayal
committed
healthy icon z-index fix for appStatus card
1 parent 106272b commit 5a38d47

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

src/components/app/details/appDetails/AppDetails.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,10 +616,12 @@ export const Details: React.FC<DetailsType> = ({
616616
/>
617617
)
618618
}
619-
619+
const isdeploymentAppDeleting = appDetails?.deploymentAppDeleteRequest || false
620620
return (
621621
<>
622-
<div className="w-100 pt-16 pr-20 pb-16 pl-20 app-info-bg dc__gap-16">
622+
<div
623+
className={`w-100 pt-16 pr-20 pb-16 pl-20 dc__gap-16 ${isdeploymentAppDeleting ? 'app-info-bg' : 'app-info-bg-gradient'}`}
624+
>
623625
<SourceInfo
624626
appDetails={appDetails}
625627
setDetailed={toggleDetailedStatus}

src/components/app/details/appDetails/AppStatusCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const AppStatusCard = ({ appDetails, status, cardLoading, setDetailed, message }
7373
</div>
7474
<div className="flex br-4">
7575
<figure
76-
className={`dc__app-summary__icon ${status.toLowerCase()} h-24 w-24`}
76+
className={`dc__app-summary__icon dc__zi-0 ${status.toLowerCase()} h-24 w-24`}
7777
style={{ margin: 'auto', backgroundSize: 'contain, contain' }}
7878
/>
7979
</div>

src/components/v2/appDetails/appDetails.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@
2727
.app-info-bg {
2828
background: var(--window-bg);
2929
}
30+
31+
.app-info-bg-gradient {
32+
background: linear-gradient(to top, #ffffff 0, #ffffff 50px, var(--window-bg) 50px);
33+
}

src/css/base.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3941,6 +3941,9 @@ textarea::placeholder {
39413941
user-select: none;
39423942
border: solid 1px transparent;
39433943
}
3944+
.dc__zi-0 {
3945+
z-index: 0;
3946+
}
39443947

39453948
.dc__zi-1 {
39463949
z-index: 1;

0 commit comments

Comments
 (0)