Skip to content

Commit 5a07a38

Browse files
authored
fix: fix Upload picture-card list overflow when items wrap to multiple lines (ant-design#56945)
* fix(upload): remove height property from picture card style * fix(upload): add minHeight to picture card style for better layout
1 parent cd9e9ae commit 5a07a38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/upload/style/picture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const genPictureCardStyle: GenerateStyle<UploadToken> = (token) => {
141141
[`${listCls}${listCls}-picture-card, ${listCls}${listCls}-picture-circle`]: {
142142
display: 'flex',
143143
flexWrap: 'wrap',
144-
height: uploadPictureCardSize,
144+
minHeight: uploadPictureCardSize,
145145

146146
'@supports not (gap: 1px)': {
147147
'& > *': {

0 commit comments

Comments
 (0)