From 0dc816d925f4624c3b63fe6e76e6ae93295c38c8 Mon Sep 17 00:00:00 2001 From: "honglian.you" Date: Wed, 6 Nov 2024 11:11:12 +0800 Subject: [PATCH] fix: margin for collapsed card --- modules/web/src/index.scss | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/web/src/index.scss b/modules/web/src/index.scss index 3a8f37af264c..b9632566ba5f 100644 --- a/modules/web/src/index.scss +++ b/modules/web/src/index.scss @@ -93,6 +93,22 @@ code { } } +.kd-scroll-container > :not(router-outlet, :last-child) { + padding: $content-padding 0; + + > :nth-child(1 of :has(.mat-card)) { + .mat-card { + margin-top: 0; + } + } + + > :nth-last-child(1 of :has(.mat-card)) { + .mat-card { + margin-bottom: 0; + } + } +} + .mat-chip.mat-standard-chip { box-shadow: none !important; font-size: $body-font-size-base;