mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-01 20:55:16 +09:00
feat(ui): compact Extensions library cards on phones
This commit is contained in:
1 parent
2779e7320e
commit
3e5e08be06
2 files changed
+23
No files matched your search
@@ -62,6 +62,7 @@ export const CatalogExtensionCard = ({ entry, update, busy, installing, onInstal
|
||||
|
||||
return (
|
||||
<CatalogCard
|
||||
className="sk-catalog-card--inline-action"
|
||||
icon={<ExtensionCover base="sk-catalog-card__art" entry={entry} category={category} brandSize={20} />}
|
||||
title={entry.displayName}
|
||||
sub={t('app.marketplace.versionByAuthor', 'v{{version}} · by {{author}}', {
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user