From 6870e8851664c83a12879a2915223b35f7c0d9a6 Mon Sep 17 00:00:00 2001 From: Beebles <102569435+beebls@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:50:04 -0700 Subject: [PATCH] fix up cards on profile page --- .../Styles/ThemeBrowserCardStyles.tsx | 23 ++++++++----------- .../ThemeManager/BrowserItemCard.tsx | 1 + src/pages/settings/PresetSettings.tsx | 10 ++++---- 3 files changed, 15 insertions(+), 19 deletions(-) diff --git a/src/components/Styles/ThemeBrowserCardStyles.tsx b/src/components/Styles/ThemeBrowserCardStyles.tsx index 6617e14..3ebc397 100644 --- a/src/components/Styles/ThemeBrowserCardStyles.tsx +++ b/src/components/Styles/ThemeBrowserCardStyles.tsx @@ -1,5 +1,10 @@ import { useCssLoaderState } from "../../state"; +const width = { 3: "260px", 4: "195px", 4.5: "183.33px", 5: "152px" }; +const imgheightFactory = (size: number) => (Number(width[size].slice(0, -2)) / 16) * 10 + "px"; +const fontsize = { 3: "1em", 4: "0.75em", 4.5: "0.7", 5: "0.5em" }; +const bubblesize = { 3: "40px", 4: "30px", 4.5: "25px", 5: "20px" }; + export function ThemeBrowserCardStyles({ customCardSize }: { customCardSize?: number }) { const { browserCardSize } = customCardSize ? { browserCardSize: customCardSize } @@ -9,22 +14,12 @@ export function ThemeBrowserCardStyles({ customCardSize }: { customCardSize?: nu