From d6288e5994bd6f50db56c7fbd095e62cb8c71341 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 11 Nov 2016 14:44:37 +0800 Subject: [PATCH] Fix TimePicker panel style (#3793) --- components/time-picker/style/index.less | 14 ++++++-------- package.json | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/components/time-picker/style/index.less b/components/time-picker/style/index.less index cae1ab17c1..6802f65fb9 100644 --- a/components/time-picker/style/index.less +++ b/components/time-picker/style/index.less @@ -85,6 +85,7 @@ width: 56px; overflow: hidden; position: relative; // Fix chrome weird render bug + max-height: 144px; &:hover { overflow-y: auto; @@ -99,13 +100,16 @@ border-right: 0; } + &:only-child { + width: 100%; + } + ul { list-style: none; box-sizing: border-box; margin: 0; - padding: 0; + padding: 0 0 120px 0; width: 100%; - max-height: 144px; } li { @@ -122,12 +126,6 @@ transition: background 0.3s ease; } - li:last-child:after { - content: ''; - height: 120px; - display: block; - } - li:hover { background: tint(@primary-color, 90%); } diff --git a/package.json b/package.json index 93ee223941..0b7204b00c 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "rc-switch": "~1.4.2", "rc-table": "~5.0.0", "rc-tabs": "~7.0.5", - "rc-time-picker": "~2.2.0", + "rc-time-picker": "~2.2.1", "rc-tooltip": "~3.4.2", "rc-tree": "~1.4.0", "rc-tree-select": "~1.8.0",