From 3e5e08be067687b352ff057c6a1bec6fbcf0bf35 Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Sun, 8 Nov 2026 14:27:33 -0500 Subject: [PATCH] feat(ui): compact Extensions library cards on phones --- .../marketplace/CatalogExtensionCard.jsx | 1 + frontend/src/styles/pages/_marketplace.scss | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/frontend/src/components/marketplace/CatalogExtensionCard.jsx b/frontend/src/components/marketplace/CatalogExtensionCard.jsx index edf0ea2c..8cd94bdb 100644 --- a/frontend/src/components/marketplace/CatalogExtensionCard.jsx +++ b/frontend/src/components/marketplace/CatalogExtensionCard.jsx @@ -62,6 +62,7 @@ export const CatalogExtensionCard = ({ entry, update, busy, installing, onInstal return ( } title={entry.displayName} sub={t('app.marketplace.versionByAuthor', 'v{{version}} · by {{author}}', { diff --git a/frontend/src/styles/pages/_marketplace.scss b/frontend/src/styles/pages/_marketplace.scss index 645e4cb3..18773aed 100644 --- a/frontend/src/styles/pages/_marketplace.scss +++ b/frontend/src/styles/pages/_marketplace.scss @@ -201,6 +201,28 @@ align-items: flex-start; flex-direction: column; } + + // Catalog cards: one row — icon, name/version, (i), action. The tag + // is redundant with the category chips; the foot's facts drop under. + .sk-catalog-card--inline-action { + display: grid; + grid-template-columns: auto minmax(0, 1fr) auto auto; + align-items: center; + column-gap: $space-3; + row-gap: $space-1; + padding: $space-3; + } + + .sk-catalog-card--inline-action .sk-catalog-card__head, + .sk-catalog-card--inline-action .sk-catalog-card__foot { display: contents; } + .sk-catalog-card--inline-action .sk-catalog-card__tag { display: none; } + .sk-catalog-card--inline-action .sk-catalog-card__facts { + grid-column: 2 / -1; + grid-row: 2; + + &:empty { display: none; } + } + .sk-catalog-card--inline-action .sk-catalog-card__action { grid-column: 4; grid-row: 1; } } }