Skip to content

Commit

Permalink
style: 优化图片组件样式 (#11517)
Browse files Browse the repository at this point in the history
* style: 优化图片组件样式

* 优化

* 优化样式
  • Loading branch information
qkiroc authored Jan 18, 2025
1 parent 7066406 commit 494ab1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/amis-ui/scss/components/_images.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

.#{$ns}Image {
border: var(--borderWidth) solid var(--borderColor);
overflow: hidden;

&--original {
height: 100%;
Expand Down
4 changes: 4 additions & 0 deletions packages/amis-ui/scss/components/form/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,10 @@
> span {
line-height: px2rem(32px);
display: inline-block;

.#{$ns}Form-star {
top: px2rem(10px);
}
}
}

Expand Down
1 change: 1 addition & 0 deletions packages/amis-ui/scss/components/form/_image.scss
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@
padding: 0;
border: none;
display: block;
overflow: initial;
}

&-itemClear {
Expand Down

0 comments on commit 494ab1c

Please sign in to comment.