Skip to content

Commit

Permalink
fix: 极端比例图片在预设滤镜中显示异常
Browse files Browse the repository at this point in the history
  • Loading branch information
hy16657 committed Sep 7, 2024
1 parent b34e808 commit 9719906
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/views/Editor/Toolbar/common/ElementFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,16 @@ const applyPresetFilters = (filters: ImageElementFilters) => {
@include flex-grid-layout();
}
.preset-item {
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
cursor: pointer;
@include flex-grid-layout-children(3, 31%);
img {
width: 100%;
max-width: 100%;
max-height: 120px;
}
.preset-label {
font-size: 12px;
Expand Down

0 comments on commit 9719906

Please sign in to comment.