Skip to content

Commit a54fbf7

Browse files
authored
fix: banner vertical margin (#403)
1 parent edb817e commit a54fbf7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

libs/blog/articles/feature-article/src/lib/article-details/article-details.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="mt-8 grid grid-cols-12 gap-y-10 lg:gap-x-10">
1+
<div class="grid grid-cols-12 gap-y-10 lg:gap-x-10">
22
<section
33
aria-labelledby="article-title"
44
class="order-1 col-span-12 grid w-full gap-4 overflow-auto lg:col-span-8"
@@ -63,7 +63,7 @@ <h2 id="article-title" class="flex text-[40px] font-bold">
6363
class="sticky top-24 mt-5 hidden flex-col gap-4 lg:flex"
6464
[ngClass]="{
6565
'top-24': !adBannerStoreVisible(),
66-
'top-48': adBannerStoreVisible()
66+
'top-48': adBannerStoreVisible(),
6767
}"
6868
>
6969
@if (articleDetails().anchors.length) {

libs/blog/shell/feature-shell-web/src/lib/root-shell.component.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,12 @@ import {
3131
</al-header>
3232
</div>
3333
<al-layout class="mt-20" [ngClass]="{ 'mt-40': adBannerVisible() }">
34-
@if (slides(); as slides) {
35-
<al-banner-carousel [banners]="slides" [msPerSlide]="msPerSlide()!" />
34+
@if (slides()?.length && slides(); as slides) {
35+
<al-banner-carousel
36+
class="mb-4 inline-block"
37+
[banners]="slides"
38+
[msPerSlide]="msPerSlide()!"
39+
/>
3640
}
3741
<router-outlet />
3842
</al-layout>

0 commit comments

Comments
 (0)