Fix: Use minHeight.

Temporary change: Prevent TextFile from loading large content.
Fixes #1: File preview failing with JSON files.
Add a way to open text files in new tab.
This commit is contained in:
Paul
2021-07-06 14:58:54 +01:00
parent aebcf2875a
commit 7b9766cb0b
5 changed files with 25 additions and 7 deletions

View File

@@ -100,6 +100,14 @@ export default function AttachmentActions({ attachment }: Props) {
<File size={24} className={styles.iconType} />
<span className={styles.filename}>{filename}</span>
<span className={styles.filesize}>{filesize}</span>
{ metadata.type === 'Text' && <a
href={open_url}
target="_blank"
className={styles.externalType}>
<IconButton>
<LinkExternal size={24} />
</IconButton>
</a> }
<a
href={download_url}
className={styles.downloadIcon}