From 95a3900aec0c7737e4ba603a58d0bdf2d635fc04 Mon Sep 17 00:00:00 2001 From: CPTProgrammer <46586216+CPTProgrammer@users.noreply.github.com> Date: Thu, 16 Jul 2026 15:22:06 +0800 Subject: [PATCH] Add platform icons to publish progress bars --- public/platform/curseforge.svg | 2 +- public/platform/modrinth.svg | 2 +- src/components/PublishModal.tsx | 77 +++++++++++++++++++-------------- 3 files changed, 47 insertions(+), 34 deletions(-) diff --git a/public/platform/curseforge.svg b/public/platform/curseforge.svg index 55df485..e0bdc87 100644 --- a/public/platform/curseforge.svg +++ b/public/platform/curseforge.svg @@ -1,3 +1,3 @@ - + diff --git a/public/platform/modrinth.svg b/public/platform/modrinth.svg index 83a0b89..e501cae 100644 --- a/public/platform/modrinth.svg +++ b/public/platform/modrinth.svg @@ -1 +1 @@ - + diff --git a/src/components/PublishModal.tsx b/src/components/PublishModal.tsx index d60e529..12198e6 100644 --- a/src/components/PublishModal.tsx +++ b/src/components/PublishModal.tsx @@ -11,6 +11,7 @@ import { Select, Row, Col, + Flex, Progress, Typography, Empty, @@ -364,38 +365,50 @@ export function PublishModal({
{/* Progress bars */}
- {hasModrinth && ( -
- Modrinth: - - `${progress.modrinth.done} / ${progress.modrinth.total}` - } - style={{ width: "80%" }} - /> -
- )} - {hasCurseforge && ( -
- CurseForge: - - `${progress.curseforge.done} / ${progress.curseforge.total}` - } - style={{ width: "80%" }} - /> -
- )} + + {hasModrinth && ( + + Modrinth + Modrinth + + `${progress.modrinth.done} / ${progress.modrinth.total}` + } + style={{ flex: 1 }} + /> + + )} + {hasCurseforge && ( + + CurseForge + CurseForge + + `${progress.curseforge.done} / ${progress.curseforge.total}` + } + style={{ flex: 1 }} + /> + + )} +
{/* Result */}