Layout tweaks (#10365)

* Cleanup review items

* Fix spacing

* Fix -1 text

* Cleanup scroll

* Show activity indicator when review items are null

* Show no preview text when not found

* Add padding to buttons

* Simplify comparisons
This commit is contained in:
Nicolas Mowen
2024-03-11 07:05:44 -06:00
committed by GitHub
parent cac5bccbe7
commit 838ef636f8
4 changed files with 41 additions and 19 deletions

View File

@@ -140,6 +140,11 @@ export default function PreviewVideoPlayer({
<source src={currentPreview.src} type={currentPreview.type} />
)}
</video>
{cameraPreviews && !currentPreview && (
<div className="absolute inset-x-0 top-1/2 -y-translate-1/2 bg-black text-white rounded-2xl align-center text-center">
No Preview Found
</div>
)}
</div>
);
}