Browse Source

🐛 Fix Input not align with other components in Chrome

close #17082
pull/17100/head
afc163 6 years ago
parent
commit
3606d15c2f
No known key found for this signature in database GPG Key ID: 738F973FCE5C6B48
  1. 4
      components/input/style/mixin.less
  2. 11
      components/time-picker/style/index.less

4
components/input/style/mixin.less

@ -8,11 +8,13 @@
height: @input-height-lg;
padding: @input-padding-vertical-lg @input-padding-horizontal-lg;
font-size: @font-size-lg;
line-height: @input-height-lg;
}
.input-sm() {
height: @input-height-sm;
padding: @input-padding-vertical-sm @input-padding-horizontal-sm;
line-height: @input-height-sm;
}
// input status
@ -49,7 +51,7 @@
padding: @input-padding-vertical-base @input-padding-horizontal-base;
color: @input-color;
font-size: @font-size-base;
line-height: @line-height-base;
line-height: @input-height-base;
background-color: @input-bg;
background-image: none;
border: @border-width-base @border-style-base @input-border-color;

11
components/time-picker/style/index.less

@ -225,3 +225,14 @@
right: @control-padding-horizontal-sm - 1px;
}
}
// Fix cursor height in safari
// https://stackoverflow.com/q/3843408/3040605
// https://browserstrangeness.github.io/css_hacks.html#safari
@media not all and (min-resolution: 0.001dpcm) {
@supports (-webkit-appearance: none) and (stroke-color: transparent) {
.@{ant-prefix}-input {
line-height: @line-height-base;
}
}
}

Loading…
Cancel
Save