Fix TimePicker panel style (#3793)

This commit is contained in:
afc163 2016-11-11 14:44:37 +08:00
parent 524a421d72
commit d6288e5994
2 changed files with 7 additions and 9 deletions

View File

@ -85,6 +85,7 @@
width: 56px; width: 56px;
overflow: hidden; overflow: hidden;
position: relative; // Fix chrome weird render bug position: relative; // Fix chrome weird render bug
max-height: 144px;
&:hover { &:hover {
overflow-y: auto; overflow-y: auto;
@ -99,13 +100,16 @@
border-right: 0; border-right: 0;
} }
&:only-child {
width: 100%;
}
ul { ul {
list-style: none; list-style: none;
box-sizing: border-box; box-sizing: border-box;
margin: 0; margin: 0;
padding: 0; padding: 0 0 120px 0;
width: 100%; width: 100%;
max-height: 144px;
} }
li { li {
@ -122,12 +126,6 @@
transition: background 0.3s ease; transition: background 0.3s ease;
} }
li:last-child:after {
content: '';
height: 120px;
display: block;
}
li:hover { li:hover {
background: tint(@primary-color, 90%); background: tint(@primary-color, 90%);
} }

View File

@ -65,7 +65,7 @@
"rc-switch": "~1.4.2", "rc-switch": "~1.4.2",
"rc-table": "~5.0.0", "rc-table": "~5.0.0",
"rc-tabs": "~7.0.5", "rc-tabs": "~7.0.5",
"rc-time-picker": "~2.2.0", "rc-time-picker": "~2.2.1",
"rc-tooltip": "~3.4.2", "rc-tooltip": "~3.4.2",
"rc-tree": "~1.4.0", "rc-tree": "~1.4.0",
"rc-tree-select": "~1.8.0", "rc-tree-select": "~1.8.0",