mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 19:33:11 +02:00
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 <[email protected]>
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user