aboutsummaryrefslogtreecommitdiffhomepage
path: root/assets/index
diff options
context:
space:
mode:
authorafc163 <afc163@gmail.com>2015-12-11 20:12:10 +0800
committerafc163 <afc163@gmail.com>2015-12-11 20:12:10 +0800
commit5c1299b09986b98ac228ecd77b98ffa13a6597c2 (patch)
tree67e2df4943de00704fd5a6bc8816b0969d91ad74 /assets/index
parent5fcf22e028bf878c5be854c19074480cadf8b4bc (diff)
downloadtime-picker-5c1299b09986b98ac228ecd77b98ffa13a6597c2.tar.gz
time-picker-5c1299b09986b98ac228ecd77b98ffa13a6597c2.tar.zst
time-picker-5c1299b09986b98ac228ecd77b98ffa13a6597c2.zip
Fix chrome weird render bug, close #9
Diffstat (limited to 'assets/index')
-rw-r--r--assets/index/Picker.less2
-rw-r--r--assets/index/Select.less3
2 files changed, 3 insertions, 2 deletions
diff --git a/assets/index/Picker.less b/assets/index/Picker.less
index 76bf834..bc7deb5 100644
--- a/assets/index/Picker.less
+++ b/assets/index/Picker.less
@@ -1,6 +1,6 @@
1.@{prefixClass} { 1.@{prefixClass} {
2 &-input { 2 &-input {
3 width: 100%; 3 width: 150px;
4 position: relative; 4 position: relative;
5 display: inline-block; 5 display: inline-block;
6 padding: 4px 7px; 6 padding: 4px 7px;
diff --git a/assets/index/Select.less b/assets/index/Select.less
index bca25f9..3e94c11 100644
--- a/assets/index/Select.less
+++ b/assets/index/Select.less
@@ -7,6 +7,7 @@
7 box-sizing: border-box; 7 box-sizing: border-box;
8 width: 56px; 8 width: 56px;
9 overflow: hidden; 9 overflow: hidden;
10 position: relative; // Fix chrome weird render bug
10 11
11 &:hover { 12 &:hover {
12 overflow-y: auto; 13 overflow-y: auto;
@@ -32,7 +33,7 @@
32 33
33 li { 34 li {
34 list-style: none; 35 list-style: none;
35 box-sizing: border-box; 36 box-sizing: content-box;
36 margin: 0; 37 margin: 0;
37 padding: 0 0 0 16px; 38 padding: 0 0 0 16px;
38 width: 100%; 39 width: 100%;