Skip to content

Commit a62c229

Browse files
fixed admin-post-drop-down
1 parent 09c600b commit a62c229

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

client/src/components/layout components/Trending/TrendingItem/TrendingItem.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { HamburgerIcon } from "@chakra-ui/icons";
12
import {
23
Flex,
34
Image,
@@ -152,16 +153,18 @@ const TrendingItem = ({
152153
></i>
153154
{adminPrivilages.postAccessibility && (
154155
<Fragment>
155-
<Flex mt="10px">
156+
<Flex mt="10px" className="admin-post-drop">
156157
<Menu>
157158
<MenuButton
158159
as={Flex}
159-
w="15px"
160+
w="20px"
160161
h="20px"
161162
justifyContent="center"
162163
alignItems="center"
163164
_hover={{ bg: "#ffffff80" }}
164-
></MenuButton>
165+
>
166+
<HamburgerIcon />
167+
</MenuButton>
165168
<MenuList>
166169
<MenuItem onClick={() => deletePost(post._id)}>
167170
Delete

client/src/index.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ body {
1010
height: 100%;
1111
/* overflow-x: hidden; */
1212
}
13+
14+
.admin-post-drop div span {
15+
display: flex;
16+
justify-content: center;
17+
align-items: center;
18+
}

0 commit comments

Comments
 (0)