Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rrhyne committed Jan 31, 2025
1 parent ff03dc7 commit 343a5a1
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions vscode/webviews/tabs/HistoryTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,23 +121,18 @@ export const HistoryTabWithData: React.FC<
interactions[interactions.length - 1]?.humanMessage?.text?.trim()
return (
<div key={id} className={`tw-flex tw-flex-row tw-p-1 ${styles.historyRow}`}>
<div
<Button
variant="ghost"
className={`tw-text-left tw-truncate tw-w-full ${styles.historyItem}`}
onClick={() =>
getVSCodeAPI().postMessage({
command: 'restoreHistory',
chatID: id,
})
}
onKeyDown={() =>
getVSCodeAPI().postMessage({
command: 'restoreHistory',
chatID: id,
})
}
className={`tw-text-left tw-truncate tw-w-full ${styles.historyItem}`}
>
<span className="tw-truncate tw-w-full">{lastMessage}</span>
</div>
</Button>
<Button
variant="ghost"
title="Delete chat"
Expand Down

0 comments on commit 343a5a1

Please sign in to comment.