From 0e3b67e9999d867cc304f3be61a8a042a2ab92ee Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 12 Jul 2018 11:35:50 +0800 Subject: [PATCH] Fix Timeline dot not working with Tooltip, close #11250 --- components/timeline/demo/custom.md | 4 ++-- components/timeline/style/index.less | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/timeline/demo/custom.md b/components/timeline/demo/custom.md index d2c5f1c736..10ceb6c9e4 100644 --- a/components/timeline/demo/custom.md +++ b/components/timeline/demo/custom.md @@ -1,6 +1,6 @@ --- order: 4 -title: +title: zh-CN: 自定义时间轴点 en-US: Custom --- @@ -9,7 +9,7 @@ title: 可以设置为图标或其他自定义元素。 -## en-US +## en-US Set a node as an icon or other custom element. diff --git a/components/timeline/style/index.less b/components/timeline/style/index.less index a0cc2aca17..efc6d77598 100644 --- a/components/timeline/style/index.less +++ b/components/timeline/style/index.less @@ -65,13 +65,13 @@ border-radius: 0; padding: 3px 1px; transform: translate(-50%, -50%); - top: 5px; + top: 5.5px; left: 5px; width: auto; } &-content { - padding: 0 0 0 18px; + margin: 0 0 0 18px; position: relative; top: -(@font-size-base * @line-height-base - @font-size-base) + 1px; }