feat(web): allow CameraImage to stretch

This commit is contained in:
Paul Armstrong
2021-02-13 07:24:53 -08:00
committed by Blake Blackshear
parent 52a29ed00a
commit 7314572d97
3 changed files with 19 additions and 14 deletions

View File

@@ -23,5 +23,5 @@ function Camera({ name }) {
const href = `/cameras/${name}`;
const buttons = useMemo(() => [{ name: 'Events', href: `/events?camera=${name}` }], [name]);
return <Card buttons={buttons} href={href} header={name} media={<CameraImage camera={name} />} />;
return <Card buttons={buttons} href={href} header={name} media={<CameraImage camera={name} stretch />} />;
}