fix: file preview & selected items panel size on mobile (#1492)
This commit is contained in:
@@ -60,7 +60,9 @@ const FileViewWithoutProtection = ({ application, viewControllerManager, file }:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<FilePreview file={file} application={application} key={file.uuid} />
|
<div className="flex min-h-screen flex-col md:min-h-full md:flex-grow">
|
||||||
|
<FilePreview file={file} application={application} key={file.uuid} />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ const MultipleSelectedFiles = ({ filesController, selectionController }: Props)
|
|||||||
<FileOptionsPanel filesController={filesController} selectionController={selectionController} />
|
<FileOptionsPanel filesController={filesController} selectionController={selectionController} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex w-full max-w-md flex-grow flex-col items-center justify-center">
|
<div className="flex min-h-screen w-full max-w-md flex-grow flex-col items-center justify-center md:min-h-0">
|
||||||
<IlNotesIcon className="block" />
|
<IlNotesIcon className="block" />
|
||||||
<h2 className="m-0 mt-4 text-center text-lg font-bold">{count} selected files</h2>
|
<h2 className="m-0 mt-4 text-center text-lg font-bold">{count} selected files</h2>
|
||||||
<p className="max-w-60 mt-2 text-center text-sm">Actions will be performed on all selected files.</p>
|
<p className="max-w-60 mt-2 text-center text-sm">Actions will be performed on all selected files.</p>
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ const MultipleSelectedNotes = ({
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex w-full max-w-md flex-grow flex-col items-center justify-center">
|
<div className="flex min-h-screen w-full max-w-md flex-grow flex-col items-center justify-center md:min-h-0">
|
||||||
<IlNotesIcon className="block" />
|
<IlNotesIcon className="block" />
|
||||||
<h2 className="m-0 mt-4 text-center text-lg font-bold">{count} selected notes</h2>
|
<h2 className="m-0 mt-4 text-center text-lg font-bold">{count} selected notes</h2>
|
||||||
<p className="max-w-60 mt-2 text-center text-sm">Actions will be performed on all selected notes.</p>
|
<p className="max-w-60 mt-2 text-center text-sm">Actions will be performed on all selected notes.</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user