fix(Tab): fix style error with card of type (#4582)

This commit is contained in:
nemo-shen 2021-10-28 09:44:57 +08:00 committed by GitHub
parent 5ac2e5dde7
commit 3345bca8b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,12 @@
}
&--card {
box-sizing: border-box;
margin: 0 var(--padding-md, @padding-md);
border: @border-width-base solid
var(--tabs-default-color, @tabs-default-color);
width: calc(100% - calc(var(--padding-md, @padding-md) * 2));
border-radius: @border-radius-sm;
}
&::-webkit-scrollbar {
@ -56,9 +61,6 @@
&--card {
box-sizing: border-box;
height: var(--tabs-card-height, @tabs-card-height);
border: @border-width-base solid
var(--tabs-default-color, @tabs-default-color);
border-radius: @border-radius-sm;
.van-tab {
color: var(--tabs-default-color, @tabs-default-color);