Skip to content

Commit

Permalink
Removes ellipses and keeps add account menu on small screen size (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgjohn authored Sep 27, 2024
1 parent 9f2ce75 commit b1ccf6d
Showing 1 changed file with 2 additions and 45 deletions.
47 changes: 2 additions & 45 deletions renderer/pages/accounts/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
import {
Box,
Flex,
HStack,
Heading,
Menu,
MenuButton,
Text,
VStack,
} from "@chakra-ui/react";
import { BsThreeDots } from "react-icons/bs";
import { Box, HStack, Heading, Text, VStack } from "@chakra-ui/react";
import { defineMessages, useIntl } from "react-intl";

import { AddAccountDropdown } from "@/components/AddAccountDropdown/AddAccountDropdown";
Expand Down Expand Up @@ -62,40 +52,7 @@ export default function Accounts() {
</Text>
</Box>
</VStack>
<HStack
display={{
base: "none",
md: "flex",
}}
gap={4}
>
<AddAccountDropdown />
</HStack>

<Box
display={{
base: "flex",
md: "none",
}}
>
<Menu>
<MenuButton
aria-label="Add or import account menu"
as={Flex}
h="48px"
w="48px"
borderRadius="full"
border="1px solid"
borderColor="currentColor"
alignItems="center"
textAlign="center"
>
<Flex as="span" justifyContent="center">
<BsThreeDots size="1.3em" />
</Flex>
</MenuButton>
</Menu>
</Box>
<AddAccountDropdown />
</HStack>

<UserAccountsList />
Expand Down

0 comments on commit b1ccf6d

Please sign in to comment.