|
1 | 1 | // @flow |
2 | 2 |
|
3 | | -import React, {useState, memo, useCallback} from "react" |
| 3 | +import React, { useState, memo, useCallback } from "react" |
4 | 4 | import Paper from "@mui/material/Paper" |
5 | | -import {createTheme, styled, ThemeProvider} from "@mui/material/styles" |
| 5 | +import { createTheme, styled, ThemeProvider } from "@mui/material/styles" |
6 | 6 | import ExpandIcon from "@mui/icons-material/ExpandMore" |
7 | 7 | import IconButton from "@mui/material/IconButton" |
8 | 8 | import Collapse from "@mui/material/Collapse" |
9 | 9 | import classnames from "classnames" |
10 | 10 | import useEventCallback from "use-event-callback" |
11 | 11 | import Typography from "@mui/material/Typography" |
12 | | -import {useIconDictionary} from "../icon-dictionary.js" |
13 | | -import ResizePanel from "../ResizePanel" |
| 12 | +import { useIconDictionary } from "../icon-dictionary.js" |
14 | 13 | import styles from "./styles.js" |
15 | 14 |
|
16 | 15 | const theme = createTheme() |
@@ -86,15 +85,13 @@ export const SidebarBox = ({ |
86 | 85 | content |
87 | 86 | ) : null |
88 | 87 | ) : ( |
89 | | - <Collapse in={expanded}> |
90 | | - <ResizePanel direction="s" style={{height: 100}}> |
| 88 | + <Collapse in={expanded} > |
91 | 89 | <div |
92 | 90 | className="panel" |
93 | | - style={{display: "block", overflow: "hidden", height: 500}} |
| 91 | + style={{ display: "block", overflow: "hidden", height: 200 }} |
94 | 92 | > |
95 | 93 | {content} |
96 | 94 | </div> |
97 | | - </ResizePanel> |
98 | 95 | </Collapse> |
99 | 96 | )} |
100 | 97 | </ContainerDiv> |
|
0 commit comments