Skip to content

Commit 92f1cce

Browse files
committed
fix(web): add dividers around the load earlier label
1 parent 673c5e3 commit 92f1cce

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎apps/web/src/components/chat/MessagesTimeline.tsx‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,9 +1569,13 @@ function TimelineHistoryControl(props: MessagesTimelineHistoryControls) {
15691569
disabled={props.loading}
15701570
aria-label="Load earlier turns"
15711571
onClick={() => props.onLoadEarlier()}
1572-
className="w-full py-1.5 text-xs text-muted-foreground/60 hover:text-foreground disabled:cursor-default"
1572+
className="flex w-full cursor-pointer items-center gap-3 py-1.5 text-muted-foreground text-xs hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring disabled:cursor-default"
15731573
>
1574-
{props.loading ? "Loading earlier turns…" : "Load earlier turns"}
1574+
<span aria-hidden="true" className="h-px flex-1 bg-border/70" />
1575+
<span className="shrink-0">
1576+
{props.loading ? "Loading earlier turns…" : "Load earlier turns"}
1577+
</span>
1578+
<span aria-hidden="true" className="h-px flex-1 bg-border/70" />
15751579
</button>
15761580
) : null}
15771581
{props.error !== null ? (

0 commit comments

Comments
 (0)