@@ -17,6 +17,7 @@ import { useExtensionState } from "../../context/ExtensionStateContext"
1717import Thumbnails from "../common/Thumbnails"
1818import { normalizeApiConfiguration } from "../settings/ApiOptions"
1919import { DeleteTaskDialog } from "../history/DeleteTaskDialog"
20+ import { vscBadgeBackground , vscEditorBackground , vscInputBackground } from "../ui"
2021
2122interface TaskHeaderProps {
2223 task : ClineMessage
@@ -65,7 +66,7 @@ const TaskHeader: React.FC<TaskHeaderProps> = ({
6566 function without triggering re-renders or effect re-runs. This approach
6667 ensures that our event listener always has access to the most current state
6768 while minimizing performance overhead and potential memory leaks from
68- multiple listener registrations.
69+ multiple listener registrations.
6970
7071 Sources
7172 - https://usehooks-ts.com/react-hook/use-event-listener
@@ -74,7 +75,7 @@ const TaskHeader: React.FC<TaskHeaderProps> = ({
7475 - https://stackoverflow.com/questions/55565444/how-to-register-event-with-useeffect-hooks
7576
7677 Before:
77-
78+
7879 const updateMaxHeight = useCallback(() => {
7980 if (isExpanded && textContainerRef.current) {
8081 const maxHeight = window.innerHeight * (3 / 5)
@@ -136,10 +137,10 @@ const TaskHeader: React.FC<TaskHeaderProps> = ({
136137 < div style = { { padding : "10px 13px 10px 13px" } } >
137138 < div
138139 style = { {
139- backgroundColor : "var(--vscode-badge-background)" ,
140+ backgroundColor : vscEditorBackground ,
140141 color : "var(--vscode-badge-foreground)" ,
141- borderRadius : "3px " ,
142- padding : "9px 10px 9px 14px " ,
142+ borderRadius : "12px " ,
143+ padding : "12px " ,
143144 display : "flex" ,
144145 flexDirection : "column" ,
145146 gap : 6 ,
0 commit comments