@codecavepro/brand 2.7.6 → 2.8.0

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.
@@ -35,11 +35,13 @@ const imageUrl = (url: string) => props.resolveImage?.(url) ?? url
35
35
  rounded-[2.25rem] bg-surface-secondary hover:bg-surface-tertiary transition-colors cursor-pointer border-surface-tertiary border
36
36
  ${className ?? ''}`">
37
37
  <div class="flex flex-col sm:flex-row gap-5 sm:gap-8 h-fit">
38
- <img loading="lazy" class="sm:w-[132px] sm:h-[132px] rounded-xl object-cover"
38
+ <div class="w-full h-full p-1">
39
+ <img loading="lazy" class="sm:w-[132px] sm:h-[132px] rounded-xl object-scale-down"
39
40
  :src="imageUrl(article.cover.url)"
40
41
  :alt="article.title"
41
42
  :width="100"
42
43
  :height="100"/>
44
+ </div>
43
45
  <div class="space-y-2 sm:space-y-3">
44
46
  <time class="text-body-secondary text-xs sm:text-sm" :datetime="article.date?.toString()">
45
47
  {{ formattedDate(article.locale, article.date) }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codecavepro/brand",
3
- "version": "2.7.6",
3
+ "version": "2.8.0",
4
4
  "description": "CODECAVE design system — colour, typography and layout tokens as CSS custom properties and as a typed module.",
5
5
  "license": "Unlicense",
6
6
  "type": "module",