Skip to content

Commit

Permalink
🎨 collapse component color goes out of border fix
Browse files Browse the repository at this point in the history
* Color of the Collapse component goes out of border fix

* Color of the Collapse component goes out of border fix

* made it cleaner

* fix
  • Loading branch information
AKHIL-DyC authored May 17, 2024
1 parent 3a00247 commit dfc6daf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cyclops-ui/src/components/pages/ModuleDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ const ModuleDetails = () => {
);
};

resources.forEach((resource: any) => {
resources.forEach((resource: any, index) => {
let collapseKey =
resource.kind + "/" + resource.namespace + "/" + resource.name;
let statusIcon = <p />;
Expand Down Expand Up @@ -471,12 +471,15 @@ const ModuleDetails = () => {
/>
);
}

resourceCollapses.push(
<Collapse.Panel
header={genExtra(resource, resource.status)}
key={collapseKey}
style={{ backgroundColor: getCollapseColor(collapseKey) }}
style={{
backgroundColor: getCollapseColor(collapseKey),
borderTopLeftRadius: index == 0 ? "7px" : "0px",
borderTopRightRadius: index == 0 ? "7px" : "0px",
}}
>
<Row>
<Col>{deletedWarning}</Col>
Expand Down

0 comments on commit dfc6daf

Please sign in to comment.