Skip to content
This repository was archived by the owner on Dec 6, 2021. It is now read-only.

Commit e8f5820

Browse files
author
zoney
committed
fix(ImagePicker):修复内容不居中,方案改为第一个元素margin置为0
1 parent 868bab0 commit e8f5820

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/style/components/image-picker.scss

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
padding: $spacing-h-sm;
1515
overflow: hidden;
1616
box-sizing: border-box;
17-
margin-left: -$spacing-h-sm;
1817
}
1918

2019
&__flex-item {
@@ -24,6 +23,10 @@
2423
height: 100%;
2524
box-sizing: border-box;
2625

26+
&:nth-child(1) {
27+
margin-left: 0 !important;
28+
}
29+
2730
&::after {
2831
content: '';
2932
display: block;

0 commit comments

Comments
 (0)