diff --git a/webview-ui/src/components/history/CopyButton.tsx b/webview-ui/src/components/history/CopyButton.tsx
index b6fff490a7..ca42b75536 100644
--- a/webview-ui/src/components/history/CopyButton.tsx
+++ b/webview-ui/src/components/history/CopyButton.tsx
@@ -7,9 +7,10 @@ import { useAppTranslation } from "@/i18n/TranslationContext"
type CopyButtonProps = {
itemTask: string
+ className?: string
}
-export const CopyButton = ({ itemTask }: CopyButtonProps) => {
+export const CopyButton = ({ itemTask, className }: CopyButtonProps) => {
const { isCopied, copy } = useClipboard()
const { t } = useAppTranslation()
@@ -34,7 +35,7 @@ export const CopyButton = ({ itemTask }: CopyButtonProps) => {
title={t("history:copyPrompt")}
onClick={onCopy}
data-testid="copy-prompt-button"
- className="opacity-50 hover:opacity-100">
+ className={cn("opacity-50 hover:opacity-100", className)}>
)
diff --git a/webview-ui/src/components/history/TaskItem.tsx b/webview-ui/src/components/history/TaskItem.tsx
index 635be2e351..9fd74b6769 100644
--- a/webview-ui/src/components/history/TaskItem.tsx
+++ b/webview-ui/src/components/history/TaskItem.tsx
@@ -50,7 +50,7 @@ const TaskItem = ({
"cursor-pointer",
{
// Compact variant styling
- "bg-vscode-editor-background rounded relative overflow-hidden border border-vscode-toolbar-hoverBackground/30 hover:border-vscode-toolbar-hoverBackground/60":
+ "group bg-vscode-editor-background rounded relative overflow-hidden border border-vscode-toolbar-hoverBackground/30 hover:border-vscode-toolbar-hoverBackground/60":
isCompact,
// Full variant styling
"bg-vscode-list-activeSelectionBackground": !isCompact && isSelectionMode && isSelected,
diff --git a/webview-ui/src/components/history/TaskItemHeader.tsx b/webview-ui/src/components/history/TaskItemHeader.tsx
index 0837d7e0b8..611676714d 100644
--- a/webview-ui/src/components/history/TaskItemHeader.tsx
+++ b/webview-ui/src/components/history/TaskItemHeader.tsx
@@ -43,7 +43,7 @@ const TaskItemHeader: React.FC = ({ item, variant, isSelect
{/* Action Buttons */}
{!isSelectionMode && (
-