Skip to content

Commit

Permalink
fix(image): small size hide preview text (ant-design#29900)
Browse files Browse the repository at this point in the history
* fix(image): small size hide preview text

* fix: image preview text ellipsis

* fix: reset test
  • Loading branch information
drizzlesconsin authored and Rain120 committed Sep 14, 2021
1 parent aa9de96 commit 2e44d94
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/image/style/index.less
Expand Up @@ -36,6 +36,10 @@
transition: opacity @animation-duration-slow;

&-info {
padding: 0 @padding-xss;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
.@{iconfont-css-prefix} {
margin-inline-end: @margin-xss;
}
Expand Down

0 comments on commit 2e44d94

Please sign in to comment.