Skip to content
Snippets Groups Projects
Unverified Commit 26ae3757 authored by Ryan Laurie's avatar Ryan Laurie Committed by GitHub
Browse files

Set consistent height for object detail modal (#21899)

* set consistent height for object detail modal
parent b0bbcd17
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,6 @@ export const ObjectDetailModal = styled.div<ObjectDetailModalProps>`
${breakpointMinMedium} {
width: ${({ wide }) => (wide ? "880px" : "568px")};
}
min-height: 480px;
max-height: 95vh;
width: 95vw;
`;
......@@ -23,10 +22,9 @@ export const ObjectDetailBodyWrapper = styled.div`
overflow-y: auto;
${breakpointMinMedium} {
display: flex;
max-height: auto;
min-height: calc(480px - 4rem);
height: calc(80vh - 4rem);
}
max-height: calc(100vh - 8rem);
height: calc(100vh - 8rem);
`;
export const ObjectDetailsTable = styled.div`
......@@ -34,7 +32,7 @@ export const ObjectDetailsTable = styled.div`
flex: 1;
padding: 2rem;
${breakpointMinMedium} {
max-height: calc(100vh - 12rem);
max-height: calc(80vh - 4rem);
}
`;
......@@ -45,7 +43,7 @@ export const ObjectRelationships = styled.div`
background-color: ${colors["bg-light"]};
${breakpointMinMedium} {
flex: 0 0 33.3333%;
max-height: calc(100vh - 12rem);
max-height: calc(80vh - 4rem);
}
`;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment