qualityGates: QualityGate[];
}
-const MAIN_CONTENT_TOP_PADDING = 48;
-
class App extends React.PureComponent<Props, State> {
mounted = false;
state: State = { canCreate: false, loading: true, qualityGates: [] };
<Suggestions suggestions="quality_gates" />
<StyledContentWrapper
- className="sw-col-span-3 sw-px-4 sw-py-6 sw-border-t-0 sw-rounded-0"
+ className="sw-col-span-3 sw-px-4 sw-py-6 sw-border-y-0 sw-rounded-0"
style={{
height: `calc(100vh - ${LAYOUT_GLOBAL_NAV_HEIGHT + LAYOUT_FOOTER_HEIGHT}px)`,
}}
</StyledContentWrapper>
{name !== undefined && (
- <StyledContentWrapper
- className="sw-col-span-9 sw-overflow-y-auto sw-mt-12"
+ <div
+ className="sw-col-span-9 sw-overflow-y-auto"
style={{
- height: `calc(100vh - ${
- LAYOUT_GLOBAL_NAV_HEIGHT + LAYOUT_FOOTER_HEIGHT
- }px - ${MAIN_CONTENT_TOP_PADDING}px)`,
+ height: `calc(100vh - ${LAYOUT_GLOBAL_NAV_HEIGHT + LAYOUT_FOOTER_HEIGHT}px)`,
}}
>
- <Details
- qualityGateName={name}
- onSetDefault={this.handleSetDefault}
- refreshQualityGates={this.fetchQualityGates}
- />
- </StyledContentWrapper>
+ <StyledContentWrapper className="sw-my-12">
+ <Details
+ qualityGateName={name}
+ onSetDefault={this.handleSetDefault}
+ refreshQualityGates={this.fetchQualityGates}
+ />
+ </StyledContentWrapper>
+ </div>
)}
</div>
</PageContentFontWrapper>
border-radius: 4px;
background-color: ${themeColor('filterbar')};
border: ${themeBorder('default', 'filterbarBorder')};
- border-bottom: none;
overflow-x: hidden;
`);