Skip to content

Commit 337cdfb

Browse files
committed
feat(timeline): update width of content wrapper
1 parent e93b4e6 commit 337cdfb

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

packages/paste-core/components/timeline/src/TimelineItem.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ const TimelineItem = React.forwardRef<HTMLLIElement, TimelineItemProps>(
7676
flexDirection="column"
7777
columnGap="space10"
7878
paddingBottom="space60"
79+
width="100%"
7980
>
8081
{onClick ? (
8182
<Button
@@ -93,6 +94,7 @@ const TimelineItem = React.forwardRef<HTMLLIElement, TimelineItemProps>(
9394
_focus={{ color: "colorTextLink", boxShadow: "shadowFocus" }}
9495
_disabled={{ color: "colorTextWeaker" }}
9596
disabled={disabled}
97+
display="block"
9698
>
9799
<Truncate title={title}>{title}</Truncate>
98100
</Button>

packages/paste-core/components/timeline/src/TimelineItemGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const TimelineItemGroup = React.forwardRef<HTMLLIElement, TimelineItemGro
3030
<TimelineItemIcon icon={icon} />
3131
</Box>
3232

33-
<Box element={`${element}_CONTENT_WRAPPER`}>
33+
<Box element={`${element}_CONTENT_WRAPPER`} width="100%">
3434
<Box element={`${element}_TIMESTAMP`} marginTop="space10" marginBottom="space30">
3535
<DetailText element={`${element}_TIMESTAMP_DETAIL_TEXT`} marginTop="space0">
3636
{timestamp}

packages/paste-core/components/timeline/stories/index.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export const TimelineGrouped = (): React.ReactNode => {
105105

106106
export const TimelineInteractive = (): React.ReactNode => {
107107
return (
108-
<Box maxWidth="200px">
108+
<Box maxWidth="300px">
109109
<Timeline>
110110
<TimelineItemGroup timestamp="Today – Wednesday, April 9, 2025">
111111
<TimelineItem title="Invoice billing issue for March cycle resolved" timestamp="9:12 AM" onClick={() => {}} />

0 commit comments

Comments
 (0)