From 994d70aa62db0f04be932aaa1371fa25473783f3 Mon Sep 17 00:00:00 2001 From: Anthony GAEREMYNCK <1@anthony.sh> Date: Fri, 31 Jul 2026 16:01:37 +0200 Subject: [PATCH] feat(frontend): restyle format picker and add file size to the config card Co-Authored-By: Claude Sonnet 5 --- frontend/src/components/FileConfigCard.jsx | 32 +++++++---- frontend/src/styles/home.css | 65 +++++++++++++++++++++- 2 files changed, 83 insertions(+), 14 deletions(-) diff --git a/frontend/src/components/FileConfigCard.jsx b/frontend/src/components/FileConfigCard.jsx index 96e90cf..cfc6c43 100644 --- a/frontend/src/components/FileConfigCard.jsx +++ b/frontend/src/components/FileConfigCard.jsx @@ -1,4 +1,5 @@ import { File as FileIcon } from '@phosphor-icons/react'; +import { formatBytes } from '../utils/formatBytes.js'; const QUALITY_FORMATS = ['jpg', 'jpeg', 'webp', 'avif', 'tiff']; const ICON_SIZES = [16, 32, 48, 256, 512]; @@ -7,21 +8,28 @@ const DEFAULT_ICON_SIZE = 256; export function FileConfigCard({ item, index, t, onTargetFormatChange, onQualityChange, onIconSizeChange }) { return (
  • - - {item.file.name} +
    + + {item.file.name} + {formatBytes(item.file.size)} +
    {item.targets.length > 0 ? (
    - +
    + + {item.targetFormat && {item.targetFormat.toUpperCase()}} +
    {QUALITY_FORMATS.includes(item.targetFormat) && (