Browse Source

fix(button): taro h5 width abnormal

richard1015 3 years ago
parent
commit
b3fd3302d6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/packages/__VUE/button/index.scss

+ 1 - 0
src/packages/__VUE/button/index.scss

@@ -1,6 +1,7 @@
 .nut-button {
 .nut-button {
   position: relative;
   position: relative;
   display: inline-block;
   display: inline-block;
+  width: auto;
   flex-shrink: 0;
   flex-shrink: 0;
   height: $button-default-height;
   height: $button-default-height;
   box-sizing: border-box;
   box-sizing: border-box;