uView icon indicating copy to clipboard operation
uView copied to clipboard

TimeLine 时间轴 左侧的线条多了半截,怎么去掉

Open liushidai opened this issue 3 years ago • 2 comments

TimeLine 时间轴 左侧的线条多了半截 如图,就是第一个时间节点,下方这个线,怎么把这个线干掉。 R4Bs8U.png

liushidai avatar Jul 05 '21 08:07 liushidai

  1. 看源码,这根线高度是由内容撑开的,不能定制
210713_163230
  1. 不过可用些小手段隐藏它。即给最后一项的 icon 加个高度和背景的样式

210713_163658

  1. 效果
210713_163727

hobeas avatar Jul 13 '21 08:07 hobeas

这个思路很好,不过我用了另外一种办法,在 ::before 中,设置了一个 bottom: 32px。

不过两种思路终归是一样的 :)

StevenGrow avatar May 31 '23 10:05 StevenGrow