Removed redundant block on the topic page
This commit is contained in:
parent
580b8426b8
commit
071d700bf0
|
@ -122,9 +122,7 @@ export const TopicView = (props: TopicProps) => {
|
|||
wrapper={'author'}
|
||||
/>
|
||||
|
||||
<Show when={searchParams().by === 'recent'}>
|
||||
<Slider title={title()} articles={sortedArticles().slice(5, 11)} />
|
||||
</Show>
|
||||
<Slider title={title()} articles={sortedArticles().slice(5, 11)} />
|
||||
|
||||
<Beside
|
||||
beside={sortedArticles()[12]}
|
||||
|
@ -133,26 +131,6 @@ export const TopicView = (props: TopicProps) => {
|
|||
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}>
|
||||
<Row3 articles={sortedArticles().slice(13, 16)} />
|
||||
<Row2 articles={sortedArticles().slice(16, 18)} />
|
||||
|
|
|
@ -456,7 +456,7 @@ figcaption {
|
|||
font-weight: bold;
|
||||
list-style: none;
|
||||
margin: 2.4rem 0 0;
|
||||
//padding: 0;
|
||||
padding: 0;
|
||||
|
||||
.all-topics-page & {
|
||||
@include media-breakpoint-down(sm) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user