Browse Source

style: Fixed the issue where the timeline width is set to 100% and padding is set, causing the width to exceed the container

zhangyumei.0319 10 months ago
parent
commit
cb51df3a80
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/semi-foundation/timeline/timeline.scss

+ 1 - 0
packages/semi-foundation/timeline/timeline.scss

@@ -7,6 +7,7 @@ $module: #{$prefix}-timeline;
     padding: $spacing-timeline-padding;
     width: $width-timeline;
     list-style: none;
+    box-sizing: border-box;
 
     &-item {
         position: relative;