Skip to content

Commit 4a14c63

Browse files
authored
🤖 refactor: move 'Load all' to new line and always underline (#2066)
## Summary Moves the 'Load all' button in the history hidden message component to a new line below the omitted message count text, and ensures it is always underlined to appear as a hyperlink. ## Changes - Extracted 'Load all' button from inline text to a sibling element - Added persistent underline styling ( class) instead of only on hover - Button now appears below the 'Omitted X messages...' text due to flex wrapping --- _Generated with `mux` • Model: `openrouter:moonshotai/kimi-k2.5` • Thinking: `high` • Cost: `$0.02`_ <!-- mux-attribution: model=openrouter:moonshotai/kimi-k2.5 thinking=high costs=0.02 -->
1 parent 6795829 commit 4a14c63

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

src/browser/components/Messages/HistoryHiddenMessage.tsx

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,16 @@ export const HistoryHiddenMessage: React.FC<HistoryHiddenMessageProps> = ({
6161
<span className="text-muted">
6262
Omitted {message.hiddenCount} message{message.hiddenCount !== 1 ? "s" : ""} for performance
6363
{omittedSuffix}
64-
{workspaceId && (
65-
<>
66-
{" "}
67-
<button
68-
type="button"
69-
className="text-link hover:text-link-hover cursor-pointer border-none bg-transparent p-0 font-medium hover:underline"
70-
onClick={() => showAllMessages(workspaceId)}
71-
>
72-
Load all
73-
</button>
74-
</>
75-
)}
7664
</span>
65+
{workspaceId && (
66+
<button
67+
type="button"
68+
className="text-link hover:text-link-hover cursor-pointer border-none bg-transparent p-0 font-medium underline"
69+
onClick={() => showAllMessages(workspaceId)}
70+
>
71+
Load all
72+
</button>
73+
)}
7774
<svg
7875
aria-hidden="true"
7976
className="text-border shrink-0"

0 commit comments

Comments
 (0)