fix(manager): match Mission Core landing geometry
This commit is contained in:
@@ -684,6 +684,9 @@ function DeviceStage({
|
||||
&& primarySections.some((section) => section.value === value)
|
||||
&& values.indexOf(value) === index
|
||||
));
|
||||
const hasMedia = overview.background.enabled && overview.background.items.some(
|
||||
(item) => Boolean(mediaSource(item)) && Boolean(item.mediaKind),
|
||||
);
|
||||
return (
|
||||
<div className="device-manager-stage">
|
||||
{error ? (
|
||||
@@ -694,7 +697,10 @@ function DeviceStage({
|
||||
</GlassSurface>
|
||||
) : null}
|
||||
|
||||
<GlassSurface className="device-manager-home" padding="lg" tone="soft">
|
||||
<section
|
||||
className="device-manager-home"
|
||||
data-has-media={hasMedia ? "true" : undefined}
|
||||
>
|
||||
<EnvironmentBackdrop background={overview.background} />
|
||||
<div className="device-manager-home__scrim" aria-hidden="true" />
|
||||
<section className="device-manager-hero">
|
||||
@@ -715,7 +721,7 @@ function DeviceStage({
|
||||
</div>
|
||||
) : null}
|
||||
</section>
|
||||
</GlassSurface>
|
||||
</section>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user