Skip to content
This repository was archived by the owner on Sep 7, 2020. It is now read-only.

Commit 134fa48

Browse files
committed
fix: center header icons
1 parent 754fcf4 commit 134fa48

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

src/Chat/components/ChannelView.ts

+18-14
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,32 @@ export const TextButton = styled.button`
3535
text-align: center;
3636
cursor: pointer;
3737
`
38-
39-
export const Controls = styled.span`
40-
padding: 1rem;
38+
export const UIButton = styled.button`
39+
border: 0;
40+
background-color: transparent;
41+
height: 24px;
42+
width: 24px;
43+
color: inherit;
44+
cursor: pointer;
45+
padding: 0;
46+
margin: 0;
47+
`
48+
export const Controls = styled.div`
49+
padding: 0;
50+
margin: 0;
51+
display: flex;
52+
margin-right: 1rem;
53+
${UIButton} + ${UIButton} {
54+
margin-left: 0.5rem;
55+
}
4156
`
42-
4357
export const Button = styled.button`
4458
font-family: 'Inter', sans-serif;
4559
background-color: transparent;
4660
border: 1px solid;
4761
height: 30px;
4862
margin: 0.5rem;
4963
`
50-
51-
export const UIButton = styled.button`
52-
border: 0;
53-
background-color: transparent;
54-
height: 30px;
55-
width: 30px;
56-
color: inherit;
57-
cursor: pointer;
58-
`
59-
6064
export const SendButton = styled.button`
6165
border: 0;
6266
background-color: transparent;

0 commit comments

Comments
 (0)