Skip to content

Commit 379eb2c

Browse files
authored
Merge pull request #22 from starwit/feature/AB#1058-Align-styles-of-sidebar
Feature/ab#1058 align styles of sidebar
2 parents c33243e + 51c30a8 commit 379eb2c

File tree

4 files changed

+5
-292
lines changed

4 files changed

+5
-292
lines changed

CHANGELOG.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5-
### [5.0.3](https://github.com/starwit/react-image-annotate/compare/5.0.2...5.0.3) (2024-03-18)
6-
7-
### [5.0.2](https://github.com/starwit/react-image-annotate/compare/5.0.1...5.0.2) (2024-03-18)
8-
95
### [5.0.1](https://github.com/starwit/react-image-annotate/compare/4.3.5...5.0.1) (2024-02-29)
106

117
## [5.0.0](https://github.com/starwit/react-image-annotate/compare/4.3.4...5.0.0) (2024-02-14)

src/workspace/ResizePanel/index.jsx

Lines changed: 0 additions & 176 deletions
This file was deleted.

src/workspace/ResizePanel/index.module.css

Lines changed: 0 additions & 104 deletions
This file was deleted.

src/workspace/SidebarBox/index.jsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
// @flow
22

3-
import React, {useState, memo, useCallback} from "react"
3+
import React, { useState, memo, useCallback } from "react"
44
import Paper from "@mui/material/Paper"
5-
import {createTheme, styled, ThemeProvider} from "@mui/material/styles"
5+
import { createTheme, styled, ThemeProvider } from "@mui/material/styles"
66
import ExpandIcon from "@mui/icons-material/ExpandMore"
77
import IconButton from "@mui/material/IconButton"
88
import Collapse from "@mui/material/Collapse"
99
import classnames from "classnames"
1010
import useEventCallback from "use-event-callback"
1111
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"
1413
import styles from "./styles.js"
1514

1615
const theme = createTheme()
@@ -86,15 +85,13 @@ export const SidebarBox = ({
8685
content
8786
) : null
8887
) : (
89-
<Collapse in={expanded}>
90-
<ResizePanel direction="s" style={{height: 100}}>
88+
<Collapse in={expanded} >
9189
<div
9290
className="panel"
93-
style={{display: "block", overflow: "hidden", height: 500}}
91+
style={{ display: "block", overflow: "hidden", height: 200 }}
9492
>
9593
{content}
9694
</div>
97-
</ResizePanel>
9895
</Collapse>
9996
)}
10097
</ContainerDiv>

0 commit comments

Comments
 (0)