Display close icon shortcut in agent , prompt and tools configs

This commit is contained in:
akhisud3195 2025-05-07 20:45:32 +05:30
parent b1384352b0
commit d2d65fa83c
3 changed files with 9 additions and 10 deletions

View file

@ -122,10 +122,10 @@ export function AgentConfig({
variant="secondary" variant="secondary"
size="sm" size="sm"
onClick={handleClose} onClick={handleClose}
startContent={<XIcon className="w-4 h-4" />} showHoverContent={true}
aria-label="Close agent config" hoverContent="Close"
> >
Close <XIcon className="w-4 h-4" />
</CustomButton> </CustomButton>
</div> </div>
} }

View file

@ -61,11 +61,10 @@ export function PromptConfig({
variant="secondary" variant="secondary"
size="sm" size="sm"
onClick={handleClose} onClick={handleClose}
startContent={<XIcon className="w-4 h-4" />} showHoverContent={true}
aria-label="Close prompt config" hoverContent="Close"
className="transition-colors"
> >
Close <XIcon className="w-4 h-4" />
</Button> </Button>
</div> </div>
} }

View file

@ -256,10 +256,10 @@ export function ToolConfig({
variant="secondary" variant="secondary"
size="sm" size="sm"
onClick={handleClose} onClick={handleClose}
startContent={<XIcon className="w-4 h-4" />} showHoverContent={true}
aria-label="Close tool config" hoverContent="Close"
> >
Close <XIcon className="w-4 h-4" />
</Button> </Button>
</div> </div>
} }