Skip to content

Commit a753501

Browse files
committed
Changed to use constants instead of magic numbers
1 parent d6ecc9b commit a753501

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const FULL_HEIGHT = '100%';
7373
const CODE_PANEL_DEFAULT_SIZE = '25%';
7474

7575
/** Minimum size for code panel. */
76-
const CODE_PANEL_MIN_SIZE = 40;
76+
const CODE_PANEL_MIN_SIZE = 80;
7777

7878
/** Background color for testing layout. */
7979
const LAYOUT_BACKGROUND_COLOR = '#0F0';
@@ -399,8 +399,8 @@ const App: React.FC = (): React.JSX.Element => {
399399
collapsible
400400
reverseArrow={true}
401401
collapsed={rightCollapsed}
402-
collapsedWidth={80}
403-
width={'25%'}
402+
collapsedWidth={CODE_PANEL_MIN_SIZE}
403+
width={CODE_PANEL_DEFAULT_SIZE}
404404
onCollapse={(collapsed: boolean) => setRightCollapsed(collapsed)}
405405
>
406406
<CodeDisplay

0 commit comments

Comments
 (0)