diff --git a/frontend/src/components/store/PluginCard.tsx b/frontend/src/components/store/PluginCard.tsx index b2ea3c54..8bc59475 100644 --- a/frontend/src/components/store/PluginCard.tsx +++ b/frontend/src/components/store/PluginCard.tsx @@ -6,6 +6,7 @@ import { Router, SingleDropdownOption, SuspensefulImage, + joinClassNames, staticClasses, } from 'decky-frontend-lib'; import { FC, useRef, useState } from 'react'; @@ -22,10 +23,6 @@ interface PluginCardProps { plugin: StorePlugin | LegacyStorePlugin; } -const classNames = (...classes: string[]) => { - return classes.join(' '); -}; - function isLegacyPlugin(plugin: LegacyStorePlugin | StorePlugin): plugin is LegacyStorePlugin { return 'artifact' in plugin; } @@ -44,7 +41,7 @@ const PluginCard: FC = ({ plugin }) => { > {/* TODO: abstract this messy focus hackiness into a custom component in lib */} { buttonRef.current!.focus(); @@ -68,15 +65,17 @@ const PluginCard: FC = ({ plugin }) => { boxSizing: 'border-box', }} > -
+
Router.NavigateToExternalWeb('https://github.com/' + plugin.artifact)} > {isLegacyPlugin(plugin) ? ( -
- {plugin.artifact.split('/')[0]}/ +
+ + {plugin.artifact.split('/')[0]}/ + {plugin.artifact.split('/')[1]}
) : ( @@ -89,8 +88,10 @@ const PluginCard: FC = ({ plugin }) => { display: 'flex', flexDirection: 'row', }} + className="deckyStoreCardBody" > = ({ plugin }) => { display: 'flex', flexDirection: 'column', }} + className="deckyStoreCardInfo" > -

+

Author: {plugin.author}

-

+

Tags: {plugin.tags.map((tag: string) => ( = ({ plugin }) => { ))} {isLegacyPlugin(plugin) && ( = ({ plugin }) => {

= ({ plugin }) => { }} > = ({ plugin }) => { }} >
isLegacyPlugin(plugin) @@ -179,6 +187,7 @@ const PluginCard: FC = ({ plugin }) => {