Skip to content

Commit

Permalink
fix(module: SearchBar&badge): fix iOS does not support division calcu…
Browse files Browse the repository at this point in the history
…lations in styles
  • Loading branch information
pudi.gmd committed Nov 25, 2021
1 parent 785d583 commit 2cd1db7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/badge/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
top: -1 * @v-spacing-sm;
height: @icon-size-xs;
line-height: @icon-size-xs;
min-width: @icon-size-xs / 2;
min-width: calc(@icon-size-xs / 2);
border-radius: 2 * @v-spacing-sm;
padding: 0 @h-spacing-sm;
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion components/search-bar/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
z-index: 3;
width: @icon-size-xxs;
height: @icon-size-xxs;
padding: (@search-bar-input-height - @icon-size-xxs) / 2;
padding: calc((@search-bar-input-height - @icon-size-xxs) / 2);
border-radius: @radius-circle;
top: 0;
right: 0;
Expand Down

0 comments on commit 2cd1db7

Please sign in to comment.