Skip to content

Commit d5817ee

Browse files
authored
Merge pull request #22 from omerbenda/fix/resize-handle-style
Fix/resize handle style
2 parents ba3f4e2 + c6a1686 commit d5817ee

6 files changed

Lines changed: 18 additions & 7 deletions

File tree

src/common/components/themed-resize-handle.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Box, useTheme } from '@mui/material';
2-
import { GoGrabber } from 'react-icons/go';
32
import {
43
PanelResizeHandle,
54
PanelResizeHandleProps,
@@ -23,12 +22,16 @@ const ThemedResizeHandle = ({
2322
justifyContent="center"
2423
alignItems="center"
2524
bgcolor={theme.palette.divider}
26-
width={direction === 'vertical' ? '16px' : '100%'}
27-
height={direction === 'vertical' ? '100%' : '16px'}
25+
width={direction === 'vertical' ? '12px' : '100%'}
26+
height={direction === 'vertical' ? '100%' : '12px'}
2827
>
29-
<GoGrabber
30-
size={16}
31-
style={{ rotate: direction === 'horizontal' ? '90deg' : undefined }}
28+
<Box
29+
width={direction === 'vertical' ? '4px' : '5%'}
30+
height={direction === 'vertical' ? '5%' : '4px'}
31+
minWidth={direction === 'vertical' ? '4px' : '64px'}
32+
minHeight={direction === 'vertical' ? '64px' : '4px'}
33+
bgcolor={theme.palette.grey[500]}
34+
borderRadius={'9999px'}
3235
/>
3336
</Box>
3437
</PanelResizeHandle>

src/pages/main-page/components/http-display/components/http-request-form/http-request-form.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const HTTPRequestForm = ({
3636
sx={{
3737
display: 'flex',
3838
flexDirection: 'column',
39+
borderRadius: 0,
3940
height: '100%',
4041
gap: 2,
4142
padding: 2,

src/pages/main-page/components/http-display/components/http-response/http-response.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const HTTPResponse = ({ response }: HTTPResponseProps) => {
3636
sx={{
3737
display: 'flex',
3838
flexDirection: 'column',
39+
borderRadius: 0,
3940
overflow: 'hidden',
4041
height: '100%',
4142
padding: 2,

src/pages/main-page/components/ws-display/components/ws-connect-form/ws-connection-form.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const WSConnectForm = ({
2929
sx={{
3030
display: 'flex',
3131
flexDirection: 'column',
32+
borderRadius: 0,
3233
height: '100%',
3334
gap: 2,
3435
padding: 2,

src/pages/main-page/components/ws-display/components/ws-connection/ws-connection.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const WSConnection = ({ connection }: WSConnectionProps) => {
4949
display: 'flex',
5050
flexDirection: 'column',
5151
overflow: 'hidden',
52+
borderRadius: 0,
5253
width: '100%',
5354
height: '100%',
5455
}}

src/pages/main-page/main-page.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ const MainPage = () => {
9797
<Box width="100%" height="100%">
9898
<PanelGroup direction="horizontal" style={{ width: '100%' }}>
9999
<Panel defaultSize={25}>
100-
<Paper variant="elevation" elevation={1} sx={{ height: '100%' }}>
100+
<Paper
101+
variant="elevation"
102+
elevation={1}
103+
sx={{ borderRadius: 0, height: '100%' }}
104+
>
101105
<Sidebar
102106
recordHistory={recordHistory}
103107
savedRecords={savedRecords}

0 commit comments

Comments
 (0)