Skip to content

Commit

Permalink
Center badge number
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumpr committed Jul 25, 2024
1 parent 259d7c8 commit 40a508a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/client/src/commons/search/editor/filterComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { FilterContext } from "../../../components/filter/filterContext.tsx";

class FilterComponent extends React.Component {
static contextType = FilterContext;

constructor(props) {
super(props);
this.handleFilterReset = this.handleFilterReset.bind(this);
Expand Down Expand Up @@ -226,7 +227,7 @@ class FilterComponent extends React.Component {
{t("polygon_selection")}
</Typography>
{filterPolygon !== null && (
<Badge data-cy="polygon-filter-badge" badgeContent={1} sx={{ marginLeft: "18px" }}></Badge>
<Badge data-cy="polygon-filter-badge" badgeContent={1} sx={{ marginLeft: "18px" }} />
)}
</Button>
{this.state?.searchList?.map((filter, idx) => {
Expand All @@ -246,10 +247,8 @@ class FilterComponent extends React.Component {
),
}));
}}>
<Typography variant="h6">
{t(filter?.translationId)}{" "}
<Badge badgeContent={activeFilterLength} sx={{ marginLeft: "12px" }}></Badge>
</Typography>
<Typography variant="h6">{t(filter?.translationId)} </Typography>
<Badge badgeContent={activeFilterLength} sx={{ marginLeft: "18px", marginTop: "10px" }} />
</AccordionSummary>
{filter?.name === "workgroup" && filter?.isSelected && (
<this.StyledAccordionDetails>
Expand Down

0 comments on commit 40a508a

Please sign in to comment.