From 1fc0c6cbdf4b31d8d62e91545bb6a5b3660f3949 Mon Sep 17 00:00:00 2001 From: Revanshu Paliwal Date: Thu, 14 Sep 2023 16:36:01 +0200 Subject: [PATCH] SONAR-20337 Layout changes for quality gate main content --- .../js/apps/quality-gates/components/App.tsx | 40 ++++++++++--------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/App.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/App.tsx index 4eaf22bbfd9..d2781723d6a 100644 --- a/server/sonar-web/src/main/js/apps/quality-gates/components/App.tsx +++ b/server/sonar-web/src/main/js/apps/quality-gates/components/App.tsx @@ -58,6 +58,8 @@ interface State { qualityGates: QualityGate[]; } +const MAIN_CONTENT_TOP_PADDING = 48; + class App extends React.PureComponent { mounted = false; state: State = { canCreate: false, loading: true, qualityGates: [] }; @@ -134,22 +136,34 @@ class App extends React.PureComponent {
- + - + {name !== undefined && ( - +
- + )}
@@ -157,19 +171,6 @@ class App extends React.PureComponent { } } -function ContentWrapper({ className, children }: React.PropsWithChildren<{ className: string }>) { - return ( - - {children} - - ); -} - export default function AppWrapper() { const params = useParams(); const navigate = useNavigate(); @@ -179,8 +180,9 @@ export default function AppWrapper() { const StyledContentWrapper = withTheme(styled.div` box-sizing: border-box; - + border-radius: 4px; background-color: ${themeColor('filterbar')}; - border-right: ${themeBorder('default', 'filterbarBorder')}; + border: ${themeBorder('default', 'filterbarBorder')}; + border-bottom: none; overflow-x: hidden; `); -- 2.39.5