Ignore FIle name and preview in mobile layout of file manager (#4665)

Ignore filename and preview in compact view of filemanager

Co-authored-by: Connor Yoh <connor@stirlingpdf.com>
This commit is contained in:
ConnorYoh 2025-10-13 12:13:34 +01:00 committed by GitHub
parent b54beaa66b
commit 3cebcc70af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,6 +42,7 @@ const CompactFileDetails: React.FC<CompactFileDetailsProps> = ({
<Box style={{ width: '7.5rem', height: '9.375rem', flexShrink: 0, position: 'relative', display: 'flex', alignItems: 'center', justifyContent: 'center' }}> <Box style={{ width: '7.5rem', height: '9.375rem', flexShrink: 0, position: 'relative', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
{currentFile && thumbnail ? ( {currentFile && thumbnail ? (
<img <img
className='ph-no-capture'
src={thumbnail} src={thumbnail}
alt={currentFile.name} alt={currentFile.name}
style={{ style={{
@ -66,7 +67,7 @@ const CompactFileDetails: React.FC<CompactFileDetailsProps> = ({
{/* File info */} {/* File info */}
<Box style={{ flex: 1, minWidth: 0 }}> <Box style={{ flex: 1, minWidth: 0 }}>
<Text size="sm" fw={500} truncate> <Text className='ph-no-capture' size="sm" fw={500} truncate>
{currentFile ? currentFile.name : 'No file selected'} {currentFile ? currentFile.name : 'No file selected'}
</Text> </Text>
<Text size="xs" c="dimmed"> <Text size="xs" c="dimmed">