Новые правки в компоенты

This commit is contained in:
Web-serfer 2026-04-18 18:25:10 +05:00
parent e85d1ce668
commit 6f727aae7b
23 changed files with 1483 additions and 37 deletions

View file

@ -22,6 +22,7 @@ export interface Props {
date: string;
author: string;
readTime: string;
readmeTime: string;
postId: string;
postUrl: string;
initialLikes?: number;
@ -40,6 +41,7 @@ const {
date,
author,
readTime,
readmeTime,
postId,
postUrl,
initialLikes = 0,
@ -100,7 +102,7 @@ const {
</span>
<span class="meta-item">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="meta-icon"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg>
{readTime}
{readmeTime} мин
</span>
</div>
@ -216,6 +218,23 @@ const {
content: none !important;
}
/* Исключаем секцию комментариев из нумерации */
#post-content .comments-wrapper h2,
#post-content .comments-wrapper h2::before {
counter-increment: none !important;
content: none !important;
}
#post-content .comments-wrapper h3,
#post-content .comments-wrapper h3::before {
counter-increment: none !important;
content: none !important;
}
#post-content .comments-wrapper .section-title,
#post-content .comments-wrapper .section-title::before {
counter-increment: none !important;
content: none !important;
}
/* СКРОЛЛ-ФИКС */
#post-content h2, #post-content h3 { scroll-margin-top: 125px; }