Removed redundant block on the topic page

This commit is contained in:
kvakazyambra 2022-11-10 01:14:14 +03:00
parent 580b8426b8
commit 071d700bf0
2 changed files with 2 additions and 24 deletions

View File

@ -122,9 +122,7 @@ export const TopicView = (props: TopicProps) => {
wrapper={'author'} wrapper={'author'}
/> />
<Show when={searchParams().by === 'recent'}>
<Slider title={title()} articles={sortedArticles().slice(5, 11)} /> <Slider title={title()} articles={sortedArticles().slice(5, 11)} />
</Show>
<Beside <Beside
beside={sortedArticles()[12]} beside={sortedArticles()[12]}
@ -133,26 +131,6 @@ export const TopicView = (props: TopicProps) => {
wrapper={'top-article'} wrapper={'top-article'}
/> />
<Show when={searchParams().by !== 'recent'}>
<div class={clsx(styles.floorImportant, 'row floor floor--important')}>
<div class="container">
<div class="row">
<h3 class="col-12">{title()}</h3>
<For each={sortedArticles().slice(0, 6)}>
{(article) => (
<div class="col-md-6">
<ArticleCard
article={article}
settings={{ isFloorImportant: true, isBigTitle: true }}
/>
</div>
)}
</For>
</div>
</div>
</div>
</Show>
<Show when={sortedArticles().length > 5}> <Show when={sortedArticles().length > 5}>
<Row3 articles={sortedArticles().slice(13, 16)} /> <Row3 articles={sortedArticles().slice(13, 16)} />
<Row2 articles={sortedArticles().slice(16, 18)} /> <Row2 articles={sortedArticles().slice(16, 18)} />

View File

@ -456,7 +456,7 @@ figcaption {
font-weight: bold; font-weight: bold;
list-style: none; list-style: none;
margin: 2.4rem 0 0; margin: 2.4rem 0 0;
//padding: 0; padding: 0;
.all-topics-page & { .all-topics-page & {
@include media-breakpoint-down(sm) { @include media-breakpoint-down(sm) {