Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

feat(marketplace): density pass, Installed top-bar tab, per-extension cover art

Juan Denisf391723bb37a
diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx
index 233216cc..b6324679 100644
--- a/frontend/src/App.jsx
+++ b/frontend/src/App.jsx
@@ -373,6 +373,7 @@ function AppRoutes() {
<Route path="workspaces/:id/:tab/:section" element={<WorkspaceDetail />} />
<Route element={<TabGroupLayout tabs={MARKET_TABS} />}>
<Route path="marketplace" element={<Marketplace />} />
+ <Route path="marketplace/installed" element={<Marketplace />} />
<Route path="downloads" element={<Downloads />} />
</Route>
<Route path="style-guide" element={<StyleGuide />} />
diff --git a/frontend/src/components/icons/ExtensionBrands.jsx b/frontend/src/components/icons/ExtensionBrands.jsx
new file mode 100644
index 00000000..77a31cd5
--- /dev/null
+++ b/frontend/src/components/icons/ExtensionBrands.jsx
@@ -0,0 +1,60 @@
+// Brand-authentic marks for bundled extensions, plus a deterministic per-slug
+// cover gradient. Mirrors components/icons/DatabaseBrands.jsx: wrap Simple Icons
+// (via react-icons) so recognizable products (WordPress, Cloudflare, Gitea,
+// NVIDIA, WireGuard) show their real brand mark instead of a generic glyph.
+//
+// Slugs without a real brand icon return null so the caller can fall back to the
+// manifest icon or the category lucide glyph.
+import {
+ SiWordpress, SiCloudflare, SiGitea, SiGit, SiNvidia, SiWireguard,
+} from 'react-icons/si';
+
+// Strip the conventional `serverkit-` prefix and lowercase so keyword matching
+// works on both `serverkit-wordpress` and `wordpress`.
+const normalizeSlug = (slug) => String(slug || '').toLowerCase().replace(/^serverkit-/, '');
+
+// Ordered keyword rules — first match wins. Keep the most specific keys first
+// (gitea before the generic git fallback).
+const BRAND_RULES = [
+ { keys: ['wordpress'], Icon: SiWordpress },
+ { keys: ['cloudflare'], Icon: SiCloudflare },
+ { keys: ['gitea', 'forgejo'], Icon: SiGitea },
+ { keys: ['git'], Icon: SiGit },
+ { keys: ['gpu', 'nvidia', 'cuda'], Icon: SiNvidia },
+ { keys: ['wireguard', 'remote'], Icon: SiWireguard },
+];
+
+const resolveBrand = (slug) => {
+ const normalized = normalizeSlug(slug);
+ const rule = BRAND_RULES.find((item) => item.keys.some((key) => normalized.includes(key)));
+ return rule ? rule.Icon : null;
+};
+
+export function hasBrandMark(slug) {
+ return Boolean(resolveBrand(slug));
+}
+
+// Renders the brand mark for a known bundled slug, or null when we have no real
+// brand icon (fallback handled by the caller). Simple Icons render with
+// `fill="currentColor"`, so cover styling controls the tint without inline color.
+export function ExtensionBrandMark({ slug, size = 34, className }) {
+ const Icon = resolveBrand(slug);
+ if (!Icon) return null;
+ return <Icon size={size} className={className} aria-hidden="true" />;
+}
+
+// Deterministic per-slug cover gradient. Hashes the slug to a hue so each
+// extension keeps a stable, distinct backdrop across renders. This is the one
+// data-derived inline style allowed on the marketplace surface.
+export function extensionCoverStyle(slug, category) {
+ const seed = String(slug || category || 'extension');
+ let hash = 0;
+ for (const char of seed) hash = (hash * 31 + char.charCodeAt(0)) >>> 0;
+ const hue = hash % 360;
+ const hueShift = (hue + 28) % 360;
+ return {
+ background: `linear-gradient(135deg, hsl(${hue} 52% 42%), hsl(${hueShift} 58% 28%))`,
+ };
+}
+
+export default ExtensionBrandMark;
diff --git a/frontend/src/components/marketplace/marketTabs.jsx b/frontend/src/components/marketplace/marketTabs.jsx
index e5bd789a..49bda859 100644
--- a/frontend/src/components/marketplace/marketTabs.jsx
+++ b/frontend/src/components/marketplace/marketTabs.jsx
@@ -1,9 +1,11 @@
-import { Puzzle, Download } from 'lucide-react';
+import { Puzzle, PackageCheck, Download } from 'lucide-react';
-// Shared sub-nav for the Marketplace page group (Marketplace / Downloads).
-// Rendered in each page's <PageTopbar tabs={MARKET_TABS}> — the demo's top-bar
-// layout replaces the old sidebar sub-menu (see docs/REDESIGN_MAP.md §6 dec. 3).
+// Shared sub-nav for the Marketplace page group (Marketplace / Installed /
+// Downloads). Rendered in each page's <PageTopbar tabs={MARKET_TABS}> — the
+// top-bar layout replaces the old sidebar sub-menu (see docs/REDESIGN_MAP.md
+// §6 dec. 3). Installed is a real route (/marketplace/installed) so it deep-links.
export const MARKET_TABS = [
{ to: '/marketplace', label: 'Marketplace', end: true, icon: <Puzzle size={15} /> },
+ { to: '/marketplace/installed', label: 'Installed', icon: <PackageCheck size={15} /> },
{ to: '/downloads', label: 'Downloads', icon: <Download size={15} /> },
];
diff --git a/frontend/src/pages/Marketplace.jsx b/frontend/src/pages/Marketplace.jsx
index 9c92b845..0bd9c815 100644
--- a/frontend/src/pages/Marketplace.jsx
+++ b/frontend/src/pages/Marketplace.jsx
@@ -1,4 +1,5 @@
import { useState, useEffect, useCallback } from 'react';
+import { useLocation, useSearchParams, useNavigate } from 'react-router-dom';
import {
Activity,
CheckCircle2,
@@ -23,9 +24,15 @@ import EmptyState from '../components/EmptyState';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Badge } from '@/components/ui/badge';
-import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs';
+import {
+ Select, SelectTrigger, SelectValue, SelectContent, SelectItem,
+} from '@/components/ui/select';
+import { SegControl } from '@/components/ds';
import { useTopbarActions } from '@/hooks/useTopbarActions';
import ManualInstallModal from '../components/marketplace/ManualInstallModal';
+import {
+ ExtensionBrandMark, hasBrandMark, extensionCoverStyle,
+} from '../components/icons/ExtensionBrands';
const CATEGORIES = ['ai', 'monitoring', 'security', 'deployment', 'integration', 'ui', 'utility'];
@@ -79,6 +86,7 @@ const getRegistryCatalogEntry = (entry) => ({
author: entry.author,
firstParty: isFirstParty(entry.author, entry),
icon: entry.icon || null,
+ logo: entry.logo || null,
screenshots: Array.isArray(entry.screenshots) ? entry.screenshots : [],
permissions: Array.isArray(entry.permissions) ? entry.permissions : [],
configSchema: entry.config_schema && typeof entry.config_schema === 'object' ? entry.config_schema : null,
@@ -110,6 +118,7 @@ const getLocalCatalogEntry = (builtin) => {
author: manifest.author,
firstParty: isFirstParty(manifest.author, manifest),
icon: manifest.icon || null,
+ logo: manifest.logo || null,
screenshots: Array.isArray(manifest.screenshots) ? manifest.screenshots : [],
permissions: Array.isArray(manifest.permissions) ? manifest.permissions : [],
configSchema: manifest.config_schema && typeof manifest.config_schema === 'object' ? manifest.config_schema : null,
@@ -145,7 +154,14 @@ const Marketplace = () => {
const [category, setCategory] = useState('');
// Ownership filter: '' (all), 'serverkit' (firstParty), 'community'.
const [ownership, setOwnership] = useState('');
- const [activeTab, setActiveTab] = useState('browse');
+ const location = useLocation();
+ const [searchParams] = useSearchParams();
+ const navigate = useNavigate();
+ // The active view is driven by the route (/marketplace = browse,
+ // /marketplace/installed = installed). The legacy ?tab=installed deep link
+ // still resolves to the installed view.
+ const installedView = location.pathname.endsWith('/installed')
+ || searchParams.get('tab') === 'installed';
// Manual install modal (URL / folder / zip); null when closed, otherwise
// the source sub-tab to preselect.
const [manualInstallSource, setManualInstallSource] = useState(null);
@@ -216,7 +232,7 @@ const Marketplace = () => {
const handleManualInstalled = () => {
setManualInstallSource(null);
loadExtensions();
- setActiveTab('installed');
+ navigate('/marketplace/installed');
};
// Open the data-policy dialog instead of uninstalling immediately, so the
@@ -306,19 +322,8 @@ const Marketplace = () => {
return (
<div className="sk-tabgroup__inner marketplace-page">
- <Tabs value={activeTab} onValueChange={setActiveTab} className="marketplace-tabs">
- <TabsList className="marketplace-tabs__list">
- <TabsTrigger value="browse">
- <LayoutGrid aria-hidden="true" />
- Browse
- </TabsTrigger>
- <TabsTrigger value="installed">
- <PackageCheck aria-hidden="true" />
- Installed ({plugins.length})
- </TabsTrigger>
- </TabsList>
-
- <TabsContent value="browse">
+ {!installedView ? (
+ <>
<div className="marketplace-toolbar">
<div className="marketplace-search">
<Search className="marketplace-search__icon" aria-hidden="true" />
@@ -329,59 +334,40 @@ const Marketplace = () => {
aria-label="Search extensions"
/>
</div>
+ <Select
+ value={category || 'all'}
+ onValueChange={(value) => setCategory(value === 'all' ? '' : value)}
+ >
+ <SelectTrigger className="marketplace-toolbar__select" aria-label="Filter by category">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="all">All categories</SelectItem>
+ {catalogCategories.map((item) => (
+ <SelectItem key={item} value={item}>{titleCase(item)}</SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ <SegControl
+ className="marketplace-toolbar__seg"
+ aria-label="Filter by publisher"
+ options={[
+ { value: '', label: 'All' },
+ { value: 'serverkit', label: 'By ServerKit' },
+ { value: 'community', label: 'Community' },
+ ]}
+ value={ownership}
+ onChange={setOwnership}
+ />
{hasFilters && (
<Button variant="ghost" size="sm" onClick={resetFilters}>
Reset
</Button>
)}
- </div>
-
- <div className="cat-chips" role="group" aria-label="Filter by category">
- <button
- type="button"
- className={`cat-chip ${category === '' ? 'cat-chip--active' : ''}`}
- aria-pressed={category === ''}
- onClick={() => setCategory('')}
- >
- All
- </button>
- {catalogCategories.map((item) => (
- <button
- key={item}
- type="button"
- className={`cat-chip ${category === item ? 'cat-chip--active' : ''}`}
- aria-pressed={category === item}
- onClick={() => setCategory(item)}
- >
- {titleCase(item)}
- </button>
- ))}
- </div>
-
- <div className="cat-chips cat-chips--ownership" role="group" aria-label="Filter by publisher">
- {[
- { id: '', label: 'All publishers' },
- { id: 'serverkit', label: 'By ServerKit' },
- { id: 'community', label: 'Community' },
- ].map((option) => (
- <button
- key={option.id || 'all'}
- type="button"
- className={`cat-chip ${ownership === option.id ? 'cat-chip--active' : ''}`}
- aria-pressed={ownership === option.id}
- onClick={() => setOwnership(option.id)}
- >
- {option.label}
- </button>
- ))}
+ <span className="marketplace-toolbar__count">{catalogEntries.length} results</span>
</div>
<section className="marketplace-section">
- <SectionHeader
- kicker="Catalog"
- title="Extension catalog"
- meta={`${catalogEntries.length} results`}
- />
{catalogEntries.length > 0 ? (
<div className="extensions-grid">
{catalogEntries.map((entry) => (
@@ -407,41 +393,39 @@ const Marketplace = () => {
/>
)}
</section>
- </TabsContent>
-
- <TabsContent value="installed">
- <section className="marketplace-section">
- <SectionHeader
- kicker="Installed"
- title="Installed extensions"
- meta={`${plugins.length} installed`}
+ </>
+ ) : (
+ <section className="marketplace-section">
+ <SectionHeader
+ kicker="Installed"
+ title="Installed extensions"
+ meta={`${plugins.length} installed`}
+ />
+ {plugins.length > 0 ? (
+ <div className="installed-list">
+ {plugins.map((plugin) => (
+ <PluginRow
+ key={plugin.id}
+ plugin={plugin}
+ update={updatesByKey.get(String(plugin.id))}
+ installing={installing}
+ onToggle={handlePluginToggle}
+ onUpdate={handlePluginUpdate}
+ onUninstall={requestPluginUninstall}
+ onConfigure={setConfigTarget}
+ statusVariant={pluginStatusVariant}
+ />
+ ))}
+ </div>
+ ) : (
+ <EmptyState
+ icon={PackageCheck}
+ title="No extensions installed"
+ description="Install one from Marketplace or use Install manually."
/>
- {plugins.length > 0 ? (
- <div className="installed-list">
- {plugins.map((plugin) => (
- <PluginRow
- key={plugin.id}
- plugin={plugin}
- update={updatesByKey.get(String(plugin.id))}
- installing={installing}
- onToggle={handlePluginToggle}
- onUpdate={handlePluginUpdate}
- onUninstall={requestPluginUninstall}
- onConfigure={setConfigTarget}
- statusVariant={pluginStatusVariant}
- />
- ))}
- </div>
- ) : (
- <EmptyState
- icon={PackageCheck}
- title="No extensions installed"
- description="Install one from Browse or use Install manually."
- />
- )}
- </section>
- </TabsContent>
- </Tabs>
+ )}
+ </section>
+ )}
{manualInstallSource && (
<ManualInstallModal
@@ -492,9 +476,53 @@ const SectionHeader = ({ kicker, title, meta }) => (
</div>
);
+// Cover artwork with a deterministic fallback chain:
+// registry logo image -> bundled brand mark -> manifest icon SVG -> category
+// lucide glyph. Kept as its own component so both the card and the detail modal
+// share the exact same resolution order.
+const ExtensionCover = ({ entry, category, brandSize = 34 }) => {
+ const [logoFailed, setLogoFailed] = useState(false);
+ const Icon = getCategoryIcon(category);
+ const iconSvg = entry.icon ? sanitizeSvgInner(entry.icon) : '';
+
+ if (entry.logo && !logoFailed) {
+ return (
+ <img
+ src={entry.logo}
+ loading="lazy"
+ alt=""
+ className="extension-card__logo"
+ onError={() => setLogoFailed(true)}
+ />
+ );
+ }
+ if (hasBrandMark(entry.installKey)) {
+ return (
+ <ExtensionBrandMark
+ slug={entry.installKey}
+ size={brandSize}
+ className="extension-card__brand"
+ />
+ );
+ }
+ if (iconSvg) {
+ return (
+ <svg
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ aria-hidden="true"
+ focusable="false"
+ className="extension-card__glyph"
+ dangerouslySetInnerHTML={{ __html: iconSvg }}
+ />
+ );
+ }
+ return <Icon aria-hidden="true" className="extension-card__glyph" />;
+};
+
const CatalogExtensionCard = ({ entry, installing, onInstall, onOpenDetail, statusVariant }) => {
const category = entry.category || 'utility';
- const Icon = getCategoryIcon(category);
const isLocal = entry.source === 'local';
const installedLabel = entry.status && entry.status !== 'active'
? titleCase(entry.status)
@@ -516,34 +544,24 @@ const CatalogExtensionCard = ({ entry, installing, onInstall, onOpenDetail, stat
onClick={openDetail}
onKeyDown={handleKeyDown}
>
- <div className="extension-card__topline">
- <div className={`extension-card__icon extension-card__icon--${category}`}>
- <Icon aria-hidden="true" />
- </div>
- <div className="extension-card__badges">
- {entry.firstParty && (
- <Badge variant="secondary" className="extension-firstparty">by ServerKit</Badge>
- )}
- <Badge variant={sourceBadgeVariant(entry.source)}>{entry.sourceLabel}</Badge>
- <Badge variant="outline">{titleCase(category)}</Badge>
- </div>
+ <div className="extension-card__cover" style={extensionCoverStyle(entry.installKey, category)}>
+ <ExtensionCover entry={entry} category={category} brandSize={34} />
+ </div>
+ <div className="extension-card__badges">
+ <Badge variant={sourceBadgeVariant(entry.source)}>{entry.sourceLabel}</Badge>
+ <Badge variant="outline">{titleCase(category)}</Badge>
</div>
<div className="extension-card__body">
<h3>{entry.displayName}</h3>
<p className="extension-card__desc">{entry.description}</p>
</div>
- <div className="extension-card__signals">
- <span>{entry.sourceDetail}</span>
- <span>{entry.installed ? installedLabel : 'Ready to install'}</span>
- </div>
<div className="extension-card__footer">
<div className="extension-card__info">
<span>v{entry.version}</span>
- {entry.author && <span>by {entry.author}</span>}
- {entry.extensionType && (
- <Badge variant="secondary">
- {isLocal ? 'built-in' : entry.extensionType}
- </Badge>
+ {entry.firstParty ? (
+ <Badge variant="secondary" className="extension-firstparty">by ServerKit</Badge>
+ ) : (
+ entry.author && <span>by {entry.author}</span>
)}
</div>
<div className="extension-card__actions">
@@ -573,9 +591,7 @@ const CatalogExtensionCard = ({ entry, installing, onInstall, onOpenDetail, stat
const ExtensionDetailModal = ({ entry, installing, statusVariant, onClose, onInstall }) => {
const category = entry.category || 'utility';
- const Icon = getCategoryIcon(category);
const isLocal = entry.source === 'local';
- const iconSvg = entry.icon ? sanitizeSvgInner(entry.icon) : '';
const screenshots = entry.screenshots || [];
const permissions = Array.isArray(entry.permissions) ? entry.permissions : [];
const configKeys = entry.configSchema && typeof entry.configSchema === 'object'
@@ -588,21 +604,10 @@ const ExtensionDetailModal = ({ entry, installing, statusVariant, onClose, onIns
return (
<Modal open onClose={onClose} title={entry.displayName} size="lg">
<div className="extension-detail">
+ <div className="extension-detail__cover" style={extensionCoverStyle(entry.installKey, category)}>
+ <ExtensionCover entry={entry} category={category} brandSize={46} />
+ </div>
<div className="extension-detail__header">
- <div className={`extension-detail__icon extension-detail__icon--${category}`}>
- {iconSvg ? (
- <svg
- viewBox="0 0 24 24"
- fill="none"
- stroke="currentColor"
- aria-hidden="true"
- focusable="false"
- dangerouslySetInnerHTML={{ __html: iconSvg }}
- />
- ) : (
- <Icon aria-hidden="true" />
- )}
- </div>
<div className="extension-detail__heading">
<div className="extension-detail__badges">
{entry.firstParty && (
diff --git a/frontend/src/styles/pages/_marketplace.scss b/frontend/src/styles/pages/_marketplace.scss
index 29b810b6..48e786e1 100644
--- a/frontend/src/styles/pages/_marketplace.scss
+++ b/frontend/src/styles/pages/_marketplace.scss
@@ -72,16 +72,17 @@
}
.marketplace-toolbar {
- display: grid;
- grid-template-columns: minmax(260px, 1fr) auto;
+ display: flex;
+ flex-wrap: wrap;
gap: $space-3;
align-items: center;
- margin-bottom: $space-6;
+ margin-bottom: $space-5;
}
.marketplace-search {
position: relative;
- min-width: 0;
+ flex: 1 1 260px;
+ min-width: 200px;
.ui-input {
padding-left: 42px;
@@ -89,6 +90,23 @@
}
}
+ .marketplace-toolbar__select.ui-select-trigger {
+ flex: 0 0 auto;
+ min-width: 160px;
+ background: $bg-card;
+ }
+
+ .marketplace-toolbar__seg {
+ flex: 0 0 auto;
+ }
+
+ .marketplace-toolbar__count {
+ margin-left: auto;
+ color: $text-tertiary;
+ font-size: $font-size-sm;
+ white-space: nowrap;
+ }
+
.marketplace-search__icon {
position: absolute;
top: 50%;
@@ -101,41 +119,6 @@
pointer-events: none;
}
- .cat-chips {
- display: flex;
- flex-wrap: wrap;
- gap: $space-2;
- margin-bottom: $space-5;
- }
-
- .cat-chip {
- padding: $space-1 $space-3;
- border: 1px solid $border-subtle;
- border-radius: $radius-md;
- background: $bg-elevated;
- color: $text-tertiary;
- font-family: inherit;
- font-size: $font-size-sm + 0.5;
- font-weight: $font-weight-medium;
- text-transform: capitalize;
- cursor: pointer;
- transition:
- color $transition-base,
- background $transition-base,
- border-color $transition-base;
-
- &:hover {
- border-color: $border-active;
- color: $text-primary;
- }
-
- &--active {
- border-color: var(--accent-dim);
- background: var(--accent-bg);
- color: var(--accent-bright);
- }
- }
-
.marketplace-section {
min-width: 0;
}
@@ -168,16 +151,15 @@
.extensions-grid {
display: grid;
- grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
- gap: $space-4;
+ grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
+ gap: $space-3;
}
.extension-card {
display: flex;
flex-direction: column;
- gap: $space-4;
- min-height: 284px;
- padding: $space-5;
+ gap: $space-3;
+ padding: $space-4;
background: $bg-card;
transition:
transform $transition-base,
@@ -200,16 +182,39 @@
}
}
- .extension-card__topline,
+ // Data-derived gradient banner (per-slug hue set inline via
+ // extensionCoverStyle). Holds the brand mark / manifest icon / category glyph.
+ .extension-card__cover {
+ display: grid;
+ place-items: center;
+ height: 72px;
+ border-radius: $radius-md;
+ overflow: hidden;
+ }
+
+ .extension-card__brand,
+ .extension-card__glyph {
+ color: rgba(255, 255, 255, 0.92);
+ }
+
+ .extension-card__glyph {
+ width: 34px;
+ height: 34px;
+ }
+
+ .extension-card__logo {
+ width: 44px;
+ height: 44px;
+ object-fit: contain;
+ }
+
.extension-card__footer,
.extension-card__info,
- .extension-card__actions,
- .extension-card__signals {
+ .extension-card__actions {
display: flex;
align-items: center;
}
- .extension-card__topline,
.extension-card__footer {
justify-content: space-between;
gap: $space-3;
@@ -217,55 +222,12 @@
.extension-card__badges {
display: flex;
- justify-content: flex-end;
align-items: center;
gap: $space-2;
flex-wrap: wrap;
min-width: 0;
}
- .extension-card__icon {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 42px;
- height: 42px;
- flex: 0 0 42px;
- border-radius: $radius-lg;
- color: $accent-primary;
- background: fade($accent-primary-raw, 12%);
-
- svg {
- width: 21px;
- height: 21px;
- }
- }
-
- .extension-card__icon--monitoring {
- color: $info;
- background: fade($info, 12%);
- }
-
- .extension-card__icon--security {
- color: $success;
- background: fade($success, 12%);
- }
-
- .extension-card__icon--deployment {
- color: $warning;
- background: fade($warning, 12%);
- }
-
- .extension-card__icon--integration {
- color: $color-docker;
- background: fade($color-docker, 12%);
- }
-
- .extension-card__icon--ui {
- color: #ec4899;
- background: rgba(236, 72, 153, 0.12);
- }
-
.extension-card__body {
min-width: 0;
@@ -280,54 +242,19 @@
.extension-card__desc {
display: -webkit-box;
- min-height: 64px;
+ min-height: 40px;
margin: 0;
overflow: hidden;
color: $text-secondary;
font-size: $font-size-base;
line-height: $line-height-normal;
-webkit-box-orient: vertical;
- -webkit-line-clamp: 3;
- }
-
- .extension-card__signals {
- justify-content: space-between;
- gap: $space-3;
- margin-top: auto;
- color: $text-tertiary;
- font-size: $font-size-sm;
-
- > span {
- display: inline-flex;
- align-items: center;
- gap: $space-2;
- min-width: 0;
- }
- }
-
- .extension-card__stars {
- display: inline-flex;
- align-items: center;
- gap: 2px;
- color: $text-tertiary;
-
- svg {
- width: 13px;
- height: 13px;
- }
-
- .is-filled {
- color: $warning;
- fill: currentColor;
- }
- }
-
- .extension-card__signal-text {
- color: $text-tertiary;
+ -webkit-line-clamp: 2;
}
.extension-card__footer {
- padding-top: $space-4;
+ margin-top: auto;
+ padding-top: $space-3;
border-top: 1px solid $border-subtle;
}
@@ -349,8 +276,8 @@
display: flex;
align-items: center;
justify-content: space-between;
- gap: $space-4;
- padding: $space-4;
+ gap: $space-3;
+ padding: $space-3;
}
.installed-item__main {
@@ -365,14 +292,14 @@
display: inline-flex;
align-items: center;
justify-content: center;
- width: 38px;
- height: 38px;
- flex: 0 0 38px;
+ width: 34px;
+ height: 34px;
+ flex: 0 0 34px;
border-radius: $radius-lg;
svg {
- width: 19px;
- height: 19px;
+ width: 17px;
+ height: 17px;
}
}
@@ -489,9 +416,7 @@
flex-direction: column;
}
- .extension-card__topline,
- .extension-card__footer,
- .extension-card__signals {
+ .extension-card__footer {
align-items: flex-start;
flex-direction: column;
}
@@ -527,20 +452,29 @@
gap: $space-4;
}
- &__icon {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 52px;
- height: 52px;
- flex: 0 0 52px;
- border-radius: $radius-lg;
- color: $accent-primary;
- background: fade($accent-primary-raw, 12%);
+ // Data-derived gradient banner in the detail modal (hue set inline via
+ // extensionCoverStyle). Wider than the card cover to read as a header.
+ &__cover {
+ display: grid;
+ place-items: center;
+ height: 108px;
+ border-radius: $radius-md;
+ overflow: hidden;
- svg {
- width: 26px;
- height: 26px;
+ .extension-card__brand,
+ .extension-card__glyph {
+ color: rgba(255, 255, 255, 0.92);
+ }
+
+ .extension-card__glyph {
+ width: 46px;
+ height: 46px;
+ }
+
+ .extension-card__logo {
+ width: 60px;
+ height: 60px;
+ object-fit: contain;
}
}