@spunto/design-system 0.14.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -149,7 +149,13 @@ export function WorkerCard({
|
|
|
149
149
|
// full-width row on a phone — and a 290 px card in a sidebar on a 27"
|
|
150
150
|
// screen is exactly as cramped as a phone.
|
|
151
151
|
className={cn(
|
|
152
|
-
|
|
152
|
+
// `flex h-full flex-col`, avec le pied en `mt-auto` : dans une grille de
|
|
153
|
+
// cartes, les cellules s'étirent sur la plus haute, et sans ça le bouton
|
|
154
|
+
// s'arrête là où le contenu s'arrête — une rangée de cartes finit avec
|
|
155
|
+
// des bandes de carte vide sous les boutons, à des hauteurs différentes.
|
|
156
|
+
// Hors grille, `height: 100%` d'un parent en hauteur automatique se
|
|
157
|
+
// résout en automatique : rien ne change.
|
|
158
|
+
"@container flex h-full flex-col overflow-hidden rounded-xl border border-border bg-card transition-colors hover:shadow-sm",
|
|
153
159
|
className
|
|
154
160
|
)}
|
|
155
161
|
>
|
|
@@ -280,7 +286,7 @@ export function WorkerCard({
|
|
|
280
286
|
)}
|
|
281
287
|
|
|
282
288
|
{(footer ?? href) && (
|
|
283
|
-
<div className="border-t border-border/50 bg-muted/20 px-3 py-2">
|
|
289
|
+
<div className="mt-auto border-t border-border/50 bg-muted/20 px-3 py-2">
|
|
284
290
|
{footer ?? (
|
|
285
291
|
<Link href={href!} className={cn(buttonVariants({ variant: "default", size: "sm" }), "h-7 w-full gap-1.5 text-xs")}>
|
|
286
292
|
{viewLabel}
|