Skip to content

Commit 1dddf57

Browse files
committed
filter svg on the right
1 parent 1262f22 commit 1dddf57

File tree

2 files changed

+22
-17
lines changed

2 files changed

+22
-17
lines changed

src/pages/display/index.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -830,17 +830,17 @@ export default class Display extends Component {
830830
collection
831831
</Primary>
832832
</Button>
833-
<Button onClick={() => this.setState({
834-
filter: !this.state.filter
835-
})}>
836-
<div className={styles.filter}>
837-
<Primary>
838-
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62.02 63.39">
839-
<path d="M61.61,2.53A3.23,3.23,0,0,0,58.78.87H3.23A3.23,3.23,0,0,0,.49,5.81L21.86,35V64.26l18.31-6.79V35L61.45,5.93l.08-.12A3.24,3.24,0,0,0,61.61,2.53ZM36.16,33.68v21l-10.3,3.83V33.68L4.75,4.87H57.27Z" transform="translate(0 -0.87)"/>
840-
</svg>
841-
</Primary>
842-
</div>
843-
</Button>
833+
<div className={styles.filter}>
834+
<Button onClick={() => this.setState({
835+
filter: !this.state.filter
836+
})}>
837+
<Primary>
838+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-filter">
839+
<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon>
840+
</svg>
841+
</Primary>
842+
</Button>
843+
</div>
844844
</div>
845845
</Padding>
846846
</Container>

src/pages/display/styles.module.scss

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,17 @@
4040
}
4141

4242
.filter {
43-
position: relative;
44-
top: 2px;
45-
left: -2px;
46-
width: 20px;
47-
height: 20px;
48-
fill: var(--text-color);
43+
display: inline;
44+
float: right;
45+
46+
svg {
47+
position: relative;
48+
top: 2px;
49+
left: -2px;
50+
width: 20px;
51+
height: 20px;
52+
fill: var(--background-color);
53+
}
4954
}
5055

5156
.card {

0 commit comments

Comments
 (0)