core-maugli 1.2.16 → 1.2.17
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
@@ -52,8 +52,8 @@ const cardImageAlt = seo?.image?.alt || image?.alt || title || 'Изображе
|
|
52
52
|
|
53
53
|
// Используем уменьшенное превью, если оно существует
|
54
54
|
let previewImage;
|
55
|
-
if (cardImage) {
|
56
|
-
previewImage = cardImage.replace(/\/([^\/]+)$/, '/previews/$1');
|
55
|
+
if (cardImage.src) {
|
56
|
+
previewImage = cardImage.src.replace(/\/([^\/]+)$/, '/previews/$1');
|
57
57
|
|
58
58
|
const __filename = fileURLToPath(import.meta.url);
|
59
59
|
const projectRoot = path.resolve(path.dirname(__filename), '../..');
|
@@ -64,7 +64,7 @@ if (cardImage) {
|
|
64
64
|
}
|
65
65
|
}
|
66
66
|
|
67
|
-
const finalImage = previewImage || cardImage;
|
67
|
+
const finalImage = previewImage || cardImage.src;
|
68
68
|
|
69
69
|
// Определяем контент для отображения
|
70
70
|
const content = excerpt || description;
|
@@ -194,23 +194,18 @@ if (import.meta.env.DEV) {
|
|
194
194
|
class={`w-full h-[195px] border border-[var(--border-main)] rounded-custom card-bg hover:card-shadow hover:-translate-y-1 transition-all duration-300 p-6 flex flex-row gap-4 items-start ${className}`}
|
195
195
|
>
|
196
196
|
<!-- Левая часть: картинка и дата -->
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
<span style="position:absolute;left:0;top:0;width:105px;height:107px;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:2;">
|
206
|
-
<span style="position:absolute;left:0;top:0;width:105px;height:107px;background:rgba(0,0,0,0.10);border-radius:inherit;z-index:1;" />
|
207
|
-
<span style="position:relative;z-index:2;font-size:48px;font-weight:700;font-family:inherit;color:var(--brand-color);letter-spacing:2px;">
|
208
|
-
{rubricInitials}
|
209
|
-
</span>
|
197
|
+
<div class="flex flex-col items-end gap-2 w-[105px] h-[147px] relative">
|
198
|
+
<img src={previewImageSrc} alt={title} class="w-[105px] h-[107px] object-cover rounded-custom" loading="lazy" />
|
199
|
+
{
|
200
|
+
rubricInitials && (
|
201
|
+
<span style="position:absolute;left:0;top:0;width:105px;height:107px;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:2;">
|
202
|
+
<span style="position:absolute;left:0;top:0;width:105px;height:107px;background:rgba(0,0,0,0.10);border-radius:inherit;z-index:1;" />
|
203
|
+
<span style="position:relative;z-index:2;font-size:48px;font-weight:700;font-family:inherit;color:var(--brand-color);letter-spacing:2px;">
|
204
|
+
{rubricInitials}
|
210
205
|
</span>
|
211
|
-
|
212
|
-
|
213
|
-
|
206
|
+
</span>
|
207
|
+
)
|
208
|
+
}
|
214
209
|
<div class="flex flex-col items-end gap-1 w-[74px] h-[32px]">
|
215
210
|
<span class={`flex items-center gap-1 text-[12px] text-right ${isBrandDate ? 'text-[var(--brand-color)]' : 'text-[var(--text-muted)]'}`}>
|
216
211
|
<svg
|