fix: Set limit for displaying attachment content

Closes #1141
This commit is contained in:
Maksim Eltyshev
2025-05-26 14:35:23 +02:00
parent a7c1d4ca11
commit 978b2a7402
4 changed files with 21 additions and 7 deletions

View File

@@ -15,6 +15,8 @@ const CARDS_LIMIT = 50;
const COMMENTS_LIMIT = 50;
const ACTIVITIES_LIMIT = 50;
const MAX_SIZE_IN_BYTES_TO_DISPLAY_CONTENT = 256 * 1024;
const IS_MAC = navigator.platform.startsWith('Mac');
export default {
@@ -26,5 +28,6 @@ export default {
CARDS_LIMIT,
COMMENTS_LIMIT,
ACTIVITIES_LIMIT,
MAX_SIZE_IN_BYTES_TO_DISPLAY_CONTENT,
IS_MAC,
};