This commit is contained in:
diced
2026-05-14 22:54:13 -07:00
parent f6188cf15b
commit 6ebd8f68f9
2 changed files with 3 additions and 3 deletions
@@ -237,7 +237,7 @@ export default function FileModal({
>
{file ? (
<>
<DashboardFileType file={file} show />
{open && <DashboardFileType file={file} show />}
<SimpleGrid cols={{ base: 1, md: 2, lg: 3 }} spacing='md' my='xs'>
<FileStat Icon={IconFileInfo} title='Type' value={file.type} />
@@ -542,7 +542,7 @@ export default function FileViewer({
overscrollBehavior: 'contain',
}}
>
{file ? (
{open && file ? (
<Box
onClick={(e) => e.stopPropagation()}
style={{
@@ -569,7 +569,7 @@ export default function FileViewer({
scrollParent={scrollParent}
/>
{open && sequenced && fileNavButtons && file && (
{sequenced && fileNavButtons && file && (
<>
<ActionButton
Icon={IconChevronLeft}