From 65f6ddbe75c38130644630f415895ece0d268ee9 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 30 Jul 2019 11:41:17 +0800 Subject: [PATCH] :bug: Fix Tabs extraContent line-height close #17865 --- components/tabs/style/card-style.less | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/components/tabs/style/card-style.less b/components/tabs/style/card-style.less index 8582c41180..7e3d886a1f 100644 --- a/components/tabs/style/card-style.less +++ b/components/tabs/style/card-style.less @@ -72,7 +72,8 @@ } &-extra-content { - line-height: @tabs-card-height; + line-height: @tabs-title-font-size * @line-height-base + extract(@tabs-horizontal-padding, 1) * + 2; .@{tab-prefix-cls}-new-tab { position: relative; @@ -101,6 +102,23 @@ } } + // https://github.com/ant-design/ant-design/issues/17865 + &&-large &-extra-content { + line-height: @tabs-title-font-size-lg * @line-height-base + + extract(@tabs-horizontal-padding-lg, 1) * 2; + } + + // https://github.com/ant-design/ant-design/issues/17865 + &&-small &-extra-content { + line-height: @tabs-title-font-size-sm * @line-height-base + + extract(@tabs-horizontal-padding-sm, 1) * 2; + } + + // https://github.com/ant-design/ant-design/issues/17865 + &&-card &-extra-content { + line-height: @tabs-card-height; + } + // https://github.com/ant-design/ant-design/issues/4669 &-vertical&-card &-card-bar&-left-bar, &-vertical&-card &-card-bar&-right-bar {