Skip to content

Commit

Permalink
frontend/charger_list: aling note to the middle of the row.
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreddow committed Dec 9, 2024
1 parent 32f231f commit ccfbb85
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions frontend/src/components/charger_list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,17 @@ export class ChargerListComponent extends Component<{}, ChargerListComponentStat
{Base58.int_to_base58(charger.uid)}
</td>
<td class="align-middle">
<Button style="background-color:transparent;border:none;" className="me-2"
onClick={() => this.setState({showEditNoteModal: true, editNote: charger.note, editChargerIdx: index})}>
<Edit color="#333"/>
</Button>
{charger.note}
<Row>
<Col className="p-0" sm="auto">
<Button style="background-color:transparent;border:none;"
onClick={() => this.setState({showEditNoteModal: true, editNote: charger.note, editChargerIdx: index})}>
<Edit color="#333"/>
</Button>
</Col>
<Col sm="9" className="d-flex align-items-center p-0">
{charger.note}
</Col>
</Row>
</td>
<td class="align-middle">
<Button disabled={!this.connection_possible(charger)} id={`connect-${charger.name}`} onClick={async () => {
Expand Down

0 comments on commit ccfbb85

Please sign in to comment.