Skip to content

Commit

Permalink
frontend/charger_list: add spacing for mobile sorting buttons when in…
Browse files Browse the repository at this point in the history
… app.
  • Loading branch information
ffreddow committed Dec 9, 2024
1 parent f2555ba commit 32f231f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/components/charger_list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import { Component } from "preact";
import { fetchClient, refresh_access_token } from "../utils";
import { Button, ButtonGroup, Card, Col, Container, Dropdown, DropdownButton, Form, Modal, Row, Table } from "react-bootstrap";
import i18n from "../i18n";
import { ChevronDown, ChevronUp, Edit, Minus, Monitor, Trash2 } from "react-feather";
import { ChevronDown, ChevronUp, Edit, Monitor, Trash2 } from "react-feather";
import { Circle } from "./Circle";
import Median from "median-js-bridge";

interface Charger {
id: string,
Expand Down Expand Up @@ -441,7 +442,7 @@ export class ChargerListComponent extends Component<{}, ChargerListComponentStat
</Table>
</Col>
<Container fluid className="d-md-none">
<Col>
<Col className={Median.isNativeApp() ? "mt-2" : undefined}>
<ButtonGroup>
<DropdownButton className="dropdown-btn" title={this.getMobileSortName()}>
<Dropdown.Item onClick={() => this.setMobileSort("name")}>{t("charger_name")}</Dropdown.Item>
Expand Down

0 comments on commit 32f231f

Please sign in to comment.