Skip to content

Commit

Permalink
Make whole row clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril committed Sep 17, 2024
1 parent 2fd0f6f commit 1444867
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions web/src/components/Solver.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,15 +246,15 @@ export function CompareDisplay({optionsLeft, optionsRight, setInputQuery, setMod
}, [optionsLeft, optionsRight]);

const rows = (output || []).map((diff, index) => {
return <tr key={index}>
<td><div
className="monospace"
dangerouslySetInnerHTML={{__html: diff.req}}
onClick={() => {
setMode('typechecker');
setInputQuery(diff.req);
}}
/></td>
return <tr
key={index}
title="click to view this query in the typechecker"
onClick={() => {
setMode('typechecker');
setInputQuery(diff.req);
}}
>
<td><div className="monospace" dangerouslySetInnerHTML={{__html: diff.req}}/></td>
<td><div className="monospace" dangerouslySetInnerHTML={{__html: diff.left}}/></td>
<td><div className="monospace" dangerouslySetInnerHTML={{__html: diff.right}}/></td>
</tr>
Expand Down

0 comments on commit 1444867

Please sign in to comment.