Skip to content

Commit

Permalink
fixed big header (elastic#112380) (elastic#112393)
Browse files Browse the repository at this point in the history
Co-authored-by: juliaElastic <[email protected]>
  • Loading branch information
kibanamachine and juliaElastic authored Sep 16, 2021
1 parent 0e76f30 commit d6e2080
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ const FlexItemWithMinWidth = styled(EuiFlexItem)`
min-width: 0px;
`;

// to limit size of iconpanel, making the header too big
const FlexItemWithMaxHeight = styled(EuiFlexItem)`
@media (min-width: 768px) {
max-height: 60px;
}
`;

function Breadcrumbs({ packageTitle }: { packageTitle: string }) {
useBreadcrumbs('integration_details_overview', { pkgTitle: packageTitle });
return null;
Expand Down Expand Up @@ -173,7 +180,7 @@ export function Detail() {
</EuiFlexItem>
<EuiFlexItem>
<EuiFlexGroup gutterSize="l">
<EuiFlexItem grow={false}>
<FlexItemWithMaxHeight grow={false}>
{isLoading || !packageInfo ? (
<LoadingIconPanel />
) : (
Expand All @@ -184,7 +191,7 @@ export function Detail() {
icons={integrationInfo?.icons || packageInfo.icons}
/>
)}
</EuiFlexItem>
</FlexItemWithMaxHeight>
<EuiFlexItem>
<EuiFlexGroup alignItems="center" gutterSize="m">
<FlexItemWithMinWidth grow={false}>
Expand Down

0 comments on commit d6e2080

Please sign in to comment.