pl-fe: increase DEFAULT_MAX_PIXELS to match Mastodon defaults

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-10-18 23:44:01 +02:00
parent 219de2da1f
commit 689e377835
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,6 @@
import { defineMessages, type IntlShape } from 'react-intl'; import { defineMessages, type IntlShape } from 'react-intl';
import { useSettingsStore } from 'pl-fe/stores/settings';
import toast from 'pl-fe/toast'; import toast from 'pl-fe/toast';
import { isLoggedIn } from 'pl-fe/utils/auth'; import { isLoggedIn } from 'pl-fe/utils/auth';
import { formatBytes, getVideoDuration } from 'pl-fe/utils/media'; import { formatBytes, getVideoDuration } from 'pl-fe/utils/media';
@ -9,7 +10,6 @@ import { getClient } from '../api';
import type { MediaAttachment, UpdateMediaParams, UploadMediaParams } from 'pl-api'; import type { MediaAttachment, UpdateMediaParams, UploadMediaParams } from 'pl-api';
import type { AppDispatch, RootState } from 'pl-fe/store'; import type { AppDispatch, RootState } from 'pl-fe/store';
import { useSettingsStore } from 'pl-fe/stores/settings';
const messages = defineMessages({ const messages = defineMessages({
exceededImageSizeLimit: { id: 'upload_error.image_size_limit', defaultMessage: 'Image exceeds the current file size limit ({limit})' }, exceededImageSizeLimit: { id: 'upload_error.image_size_limit', defaultMessage: 'Image exceeds the current file size limit ({limit})' },

View File

@ -1,7 +1,7 @@
/* eslint-disable no-case-declarations */
import { hasCanvasExtractPermission } from './favicon-service'; import { hasCanvasExtractPermission } from './favicon-service';
/* eslint-disable no-case-declarations */ const DEFAULT_MAX_PIXELS = 7680 * 4320;
const DEFAULT_MAX_PIXELS = 1920 * 1080;
interface BrowserCanvasQuirks { interface BrowserCanvasQuirks {
'image-orientation-automatic'?: boolean; 'image-orientation-automatic'?: boolean;