Skip to content

Commit

Permalink
fix: [M3-7260] - Managed Summary layout (#10042)
Browse files Browse the repository at this point in the history
## Description 📝
Fix loading and dark mode styling for the Managed Summary tab

## How to test 🧪

### Prerequisites
(How to setup test environment)
- Have an account that's Managed (you can do so via admin)

### Verification steps 
(How to verify changes)
-  Go to `/managed/summary`, there should no longer be a styling loading blip.
- The container background in dark mode should now match the graph.
  • Loading branch information
hana-akamai authored Jan 9, 2024
1 parent 23ca92f commit 7a104dc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-10042-fixed-1704748141170.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Fixed
---

Managed Summary layout ([#10042](https://github.com/linode/manager/pull/10042))
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export const StyledGraphControlsDiv = styled('div', {
top: 52,
width: 1,
},
alignItems: 'center',
display: 'flex',
minHeight: 460,
position: 'relative',
[theme.breakpoints.up('sm')]: {
width: '60%',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,11 @@ export const ManagedChartPanel = () => {
}

if (isLoading) {
return <CircleProgress />;
return (
<StyledGraphControlsDiv>
<CircleProgress />
</StyledGraphControlsDiv>
);
}

if (!data) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ export const StyledMonitorStatusOuterGrid = styled(Grid, {
export const StyledOuterContainerGrid = styled(Grid, {
label: 'StyledOuterContainerGrid',
})(({ theme }) => ({
background: theme.bg.bgPaper,
flexDirection: 'column',
margin: '-8px',
[theme.breakpoints.up('sm')]: {
flexDirection: 'row',
flexWrap: 'nowrap',
justifyContent: 'space-evenly',
},
Expand Down

0 comments on commit 7a104dc

Please sign in to comment.