scroll camera list in camera/recordings route

This commit is contained in:
spacebares 2023-07-17 16:38:34 -04:00
parent c5b8d13beb
commit 04805d29ca

View File

@ -69,9 +69,11 @@ function CameraSection({ sortedCameras }) {
return (
<Fragment>
<Separator />
<div className="overflow-auto pr-2">
{sortedCameras.map(([camera]) => (
<Destination key={camera} href={`/cameras/${camera}`} text={camera.replaceAll('_', ' ')} />
))}
</div>
<Separator />
</Fragment>
);
@ -82,6 +84,7 @@ function RecordingSection({ sortedCameras }) {
return (
<Fragment>
<Separator />
<div className="overflow-auto pr-2">
{sortedCameras.map(([camera, _]) => {
return (
<Destination
@ -92,6 +95,7 @@ function RecordingSection({ sortedCameras }) {
/>
);
})}
</div>
<Separator />
</Fragment>
);