From d5c68d95405764de6e4b97a6412a1c0a79f0d367 Mon Sep 17 00:00:00 2001 From: beebls Date: Tue, 11 Oct 2022 18:30:03 -0600 Subject: [PATCH] Use the proper Focusable element for each box This means no more hacky CSS, and it looks stock --- src/theme-manager/ThemeBrowserPage.tsx | 273 +++++++++---------------- 1 file changed, 100 insertions(+), 173 deletions(-) diff --git a/src/theme-manager/ThemeBrowserPage.tsx b/src/theme-manager/ThemeBrowserPage.tsx index 6e7d00d..5ad1750 100644 --- a/src/theme-manager/ThemeBrowserPage.tsx +++ b/src/theme-manager/ThemeBrowserPage.tsx @@ -146,30 +146,6 @@ export const ThemeBrowserPage: VFC = () => { return ( <> -
{ return ( // The outer 2 most divs are the background darkened/blurred image, and everything inside is the text/image/buttons <> -
-
- {installStatus === "outdated" && ( -
- -
- )} - - {e.name} - - + {installStatus === "outdated" && ( +
- {e.target} - + +
+ )} + { + setCurExpandedTheme(e); + Router.Navigate("/theme-manager-expanded-view"); + }} + className="CssLoader_ThemeBrowser_SingleItem_BgImage" + style={{ + backgroundImage: 'url("' + e.preview_image + '")', + backgroundSize: "cover", + backgroundRepeat: "no-repeat", + backgroundPosition: "center", + width: "260px", + borderRadius: "5px", + marginLeft: "0px", + marginRight: "5px", + marginBottom: "5px", + }} + >
-
- {e.author} + {e.name} - {e.version} + {e.target} -
-
- -
+
+ - { - setCurExpandedTheme(e); - Router.Navigate("/theme-manager-expanded-view"); - }} - > -
- {/* - {installStatus === "outdated" - ? "Update Available" - : "View Details"} - */} -
-
- + {e.author} + + + {e.version} + +
-
+
);