Browse Source

fix: timepicker make the same width under wheel and normal mode (#1241)

* fix: timepicker make the same width under wheel and normal mode

* fix: remove unexpected padding change

* fix: remove unexpected padding change

Co-authored-by: linyan <[email protected]>
Govern Fu 2 years ago
parent
commit
7e67f296d5
1 changed files with 10 additions and 1 deletions
  1. 10 1
      packages/semi-foundation/timePicker/timePicker.scss

+ 10 - 1
packages/semi-foundation/timePicker/timePicker.scss

@@ -20,6 +20,15 @@ $module-list: #{$prefix}-scrolllist;
 
             .#{$module-list}-item,
             .#{$module-list}-item-wheel .#{$module-list}-list-outer {
+                -ms-overflow-style: none; /* Internet Explorer 10+ */
+                scrollbar-width: none; /* Firefox */
+
+                &::-webkit-scrollbar {
+                    display: none;
+                    width: 0;
+                    height: 0;
+                }
+
                 & > ul {
                     padding-bottom: ($height-timePicker_panel_body - $height-scrollList_item) * 0.5;
                 }
@@ -28,7 +37,7 @@ $module-list: #{$prefix}-scrolllist;
             .#{$module-list}-item {
                 -ms-overflow-style: none; /* Internet Explorer 10+ */
                 scrollbar-width: none; /* Firefox */
-                
+
                 &::-webkit-scrollbar {
                     display: none;
                     width: 0;