Skip to content
Snippets Groups Projects
Commit 8084a481 authored by Tarje.Lavik's avatar Tarje.Lavik
Browse files

Fix height setting on HMO and Mirador

parent 4e428f8f
No related branches found
No related tags found
No related merge requests found
...@@ -78,14 +78,18 @@ export default function HumanMadeObject(item) { ...@@ -78,14 +78,18 @@ export default function HumanMadeObject(item) {
</Container> </Container>
{item.subjectOfManifest && ( {item.subjectOfManifest && (
<Box h="70vh" gridArea="image"> <Box gridArea="image">
<MiradorWithNoSSR manifests={[{ manifest: item.subjectOfManifest }]} /> <MiradorWithNoSSR manifests={[{ manifest: item.subjectOfManifest }]} height="70vh" />
</Box> </Box>
)} )}
{item.manifest && !item.subjectOfManifest && ( {item.manifest && !item.subjectOfManifest && (
<Box h="70vh" gridArea="image"> <Box gridArea="image">
<MiradorWithNoSSR hideWindowTitle="true" manifests={[{ manifest: item.manifest }]} /> <MiradorWithNoSSR
hideWindowTitle="true"
manifests={[{ manifest: item.manifest }]}
height="70vh"
/>
</Box> </Box>
)} )}
......
...@@ -102,7 +102,14 @@ export default function MiradorViewer(props) { ...@@ -102,7 +102,14 @@ export default function MiradorViewer(props) {
const mode = useColorModeValue('light', 'dark') const mode = useColorModeValue('light', 'dark')
const ID = `mirador-${nanoid()}` const ID = `mirador-${nanoid()}`
const { variant, manifests, workspaceControlPanel = false, gridArea, catalog } = props const {
variant,
manifests,
workspaceControlPanel = false,
gridArea,
catalog,
height = '50vh',
} = props
const { variantSettings, plugins } = getVariant(variant) const { variantSettings, plugins } = getVariant(variant)
const windows = manifests ? mergeManifestAndVariant(manifests, variantSettings) : null const windows = manifests ? mergeManifestAndVariant(manifests, variantSettings) : null
...@@ -172,7 +179,7 @@ export default function MiradorViewer(props) { ...@@ -172,7 +179,7 @@ export default function MiradorViewer(props) {
}, [mode]) }, [mode])
return ( return (
<Box h="50vh" position="relative" gridArea={gridArea} bgColor="#eeeeee"> <Box h={height} position="relative" gridArea={gridArea} bgColor="#eeeeee">
<Box h="100%" id={ID} /> <Box h="100%" id={ID} />
</Box> </Box>
) )
......
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