Skip to content

Commit 0fbd974

Browse files
committed
chore(37943): a bit of cleaning
1 parent 2681976 commit 0fbd974

File tree

1 file changed

+7
-31
lines changed

1 file changed

+7
-31
lines changed

hivemq-edge-frontend/src/modules/Workspace/components/controls/CanvasToolbar.tsx

Lines changed: 7 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
useDisclosure,
1212
useBreakpointValue,
1313
} from '@chakra-ui/react'
14-
import { ChevronLeftIcon, ChevronRightIcon, SearchIcon } from '@chakra-ui/icons'
14+
import { ChevronRightIcon, SearchIcon } from '@chakra-ui/icons'
1515
import { LuNetwork, LuSettings } from 'react-icons/lu'
1616

1717
import IconButton from '@/components/Chakra/IconButton.tsx'
@@ -77,16 +77,6 @@ const CanvasToolbar: FC = () => {
7777
display="flex"
7878
flexDirection={{ base: 'column', xl: 'row' }}
7979
transition="all 0.4s cubic-bezier(0.4,0,0.2,1)"
80-
// maxWidth={{
81-
// base: expanded ? '100vw' : '56px',
82-
// md: expanded ? '90vw' : '56px',
83-
// xl: expanded ? TOOLBAR.MAX_WIDTH : TOOLBAR.MIN_WIDTH,
84-
// }}
85-
// width={{
86-
// base: expanded ? '100vw' : 'auto',
87-
// md: expanded ? 'auto' : 'auto',
88-
// }}
89-
// minHeight={{ base: '48px', md: '40px' }}
9080
boxShadow="md"
9181
borderRadius="md"
9282
position="relative"
@@ -104,11 +94,7 @@ const CanvasToolbar: FC = () => {
10494
<>
10595
<SearchIcon mr="2px" />
10696
<Icon as={LuNetwork} boxSize="18px" />
107-
<Icon
108-
as={ChevronRightIcon}
109-
boxSize="24px"
110-
// transform={{ base: 'rotate(-90deg)', xl: 'rotate(0deg)' }}
111-
/>
97+
<Icon as={ChevronRightIcon} boxSize="24px" transform={{ base: 'rotate(90deg)', xl: 'rotate(0deg)' }} />
11298
</>
11399
}
114100
onClick={() => setExpanded(true)}
@@ -147,13 +133,7 @@ const CanvasToolbar: FC = () => {
147133
<DrawerFilterToolbox />
148134
</Box>
149135
</VStack>
150-
<Divider
151-
orientation={dividerOrientation}
152-
// h={{ base: 'auto', xl: '24px' }}
153-
// w={{ base: 'auto', xl: 'auto' }}
154-
borderColor="gray.300"
155-
_dark={{ borderColor: 'gray.600' }}
156-
/>
136+
<Divider orientation={dividerOrientation} borderColor="gray.300" _dark={{ borderColor: 'gray.600' }} />
157137

158138
<VStack
159139
role="region"
@@ -191,19 +171,15 @@ const CanvasToolbar: FC = () => {
191171
</Box>
192172
</Box>
193173
</VStack>
194-
<Divider
195-
orientation={dividerOrientation}
196-
// h={{ base: 'auto', xl: '24px' }}
197-
// w={{ base: 'auto', xl: 'auto' }}
198-
borderColor="gray.300"
199-
_dark={{ borderColor: 'gray.600' }}
200-
/>
174+
<Divider orientation={dividerOrientation} borderColor="gray.300" _dark={{ borderColor: 'gray.600' }} />
201175
<IconButton
202176
data-testid="toolbox-search-collapse"
203177
aria-label={t('workspace.controls.collapse')}
204178
aria-expanded="true"
205179
aria-controls="workspace-toolbar-content"
206-
icon={<Icon as={ChevronLeftIcon} boxSize="24px" />}
180+
icon={
181+
<Icon as={ChevronRightIcon} boxSize="24px" transform={{ base: 'rotate(-90deg)', xl: 'rotate(0deg)' }} />
182+
}
207183
onClick={() => setExpanded(false)}
208184
variant="ghost"
209185
size="sm"

0 commit comments

Comments
 (0)