Skip to content

Commit

Permalink
front: use more tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril committed Sep 14, 2024
1 parent 19bc38e commit fbd9486
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions web/src/components/Solver.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function JointRulesDisplay({optionsLeft, optionsRight, style}) {
<td><div className="monospace" dangerouslySetInnerHTML={{__html: joint.right}}/></td>
</tr>
});
return <Table hover>
return <Table hover style={{tableLayout: "fixed"}}>
<thead><tr>
<td>Left</td>
<td>Right</td>
Expand Down Expand Up @@ -257,12 +257,18 @@ export default function Solver() {
onChange={(e) => setInputQuery(e.target.value)}
/>
</InputGroup>
<Container fluid>
<Row>
<Col><SolverSteps {...{inputQuery, options: optionsLeft, style}}/></Col>
{compare ? <Col><SolverSteps {...{inputQuery, options: optionsRight, style}}/></Col> : null}
</Row>
</Container>
<Table style={{tableLayout: "fixed"}}>
<thead><tr>
<td>Left</td>
<td>Right</td>
</tr></thead>
<tbody>
<tr>
<td><SolverSteps {...{inputQuery, options: optionsLeft, style}}/></td>
{compare ? <td><SolverSteps {...{inputQuery, options: optionsRight, style}}/></td> : null}
</tr>
</tbody>
</Table>
</Tab>
<Tab eventKey="rules" title="Rules">
{compare
Expand Down

0 comments on commit fbd9486

Please sign in to comment.