This commit is contained in:
Dave
2026-02-16 19:53:43 +00:00
parent e6638a6517
commit 1adbadb6eb

View File

@@ -400,6 +400,38 @@ function App() {
zIndex: 2, zIndex: 2,
}} }}
> >
<div
style={{
display: "flex",
justifyContent: "flex-end",
alignItems: "center",
padding: "4px 6px",
borderBottom: "1px solid #eee",
background: "#fafafa",
}}
>
<button
type="button"
aria-label="Close suggestions"
onClick={() => {
setMatchList([]);
setSelectedMatch(0);
setSuggestionTail("");
setCompletionError(null);
}}
style={{
width: "24px",
height: "24px",
borderRadius: "4px",
border: "1px solid #ddd",
background: "#fff",
cursor: "pointer",
lineHeight: 1,
}}
>
×
</button>
</div>
{matchList.map((match, index) => { {matchList.map((match, index) => {
const isSelected = index === selectedMatch; const isSelected = index === selectedMatch;
return ( return (