This commit is contained in:
Ivan Rezchikov
2026-07-15 22:35:07 +03:00
parent 687fbaf3a6
commit ac75c72382
4 changed files with 16 additions and 14 deletions
-1
View File
@@ -33,7 +33,6 @@ type Props = {
const MAX_SIZE = 5 * 1024 * 1024;
const DEFAULT_ACCEPT = "image/jpeg,image/png,image/webp";
const EDITOR_WRAPPER_CLASS = "flex flex-col gap-2 items-stretch md:items-start";
const EDITOR_IMG_CLASS = "block max-w-full md:max-w-200 h-auto rounded-md border object-contain";
function formatFileSize(bytes: number): string {
return bytes < 1024 * 1024