From b30e33d2c6be9d5fefc26903fecbf8fcccc0df42 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Mon, 21 Oct 2024 22:29:26 +0700 Subject: [PATCH] feat: improve fonts management ux - Fixed an issue where errors aren't reset when reimporting after fixing an invalid URL - Fixed an edge case where if you edit a font entry and resync with a source URL, the edit gets overwritten, by adding a detaching mechanism - Allow editing source URLs - Rerender at correct times --- src/core/ui/settings/pages/Fonts/FontCard.tsx | 2 +- .../ui/settings/pages/Fonts/FontEditor.tsx | 89 ++++++++++++++----- src/lib/addons/fonts/index.ts | 27 +++--- 3 files changed, 81 insertions(+), 37 deletions(-) diff --git a/src/core/ui/settings/pages/Fonts/FontCard.tsx b/src/core/ui/settings/pages/Fonts/FontCard.tsx index c43c6b4..bc350b8 100644 --- a/src/core/ui/settings/pages/Fonts/FontCard.tsx +++ b/src/core/ui/settings/pages/Fonts/FontCard.tsx @@ -90,7 +90,7 @@ export default function FontCard({ item: font }: CardWrapper) { size="sm" variant="secondary" disabled={selected} - icon={findAssetId("PencilIcon")} + icon={findAssetId("WrenchIcon")} />