Skip to content
TypeScript

fix(web): add dividers around the load earlier label (#22014)

Yash Singhff90315c5ac4
diff --git a/apps/web/src/components/chat/MessagesTimeline.tsx b/apps/web/src/components/chat/MessagesTimeline.tsx
index 2b09986e728..4e1308dedfc 100644
--- a/apps/web/src/components/chat/MessagesTimeline.tsx
+++ b/apps/web/src/components/chat/MessagesTimeline.tsx
@@ -1569,9 +1569,13 @@ function TimelineHistoryControl(props: MessagesTimelineHistoryControls) {
disabled={props.loading}
aria-label="Load earlier turns"
onClick={() => props.onLoadEarlier()}
- className="w-full py-1.5 text-xs text-muted-foreground/60 hover:text-foreground disabled:cursor-default"
+ 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"
>
- {props.loading ? "Loading earlier turns…" : "Load earlier turns"}
+ <span aria-hidden="true" className="h-px flex-1 bg-border/70" />
+ <span className="shrink-0">
+ {props.loading ? "Loading earlier turns…" : "Load earlier turns"}
+ </span>
+ <span aria-hidden="true" className="h-px flex-1 bg-border/70" />
</button>
) : null}
{props.error !== null ? (