Skip to content

Commit db8b0ca

Browse files
committed
Fix the problem images disappear with a large amount of labels, together with small UI improvements.
Fix the problem images disappear with a large number of labels - By adding min-height to the `ImageContainer` Small UI improvements: - Fix "strange" bottom scroll bar - Make JSON Editor full of the window height instead of default's 500px
1 parent bf44212 commit db8b0ca

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/components/ImageClassification/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const ImageContainer = styled("div")({
4141
position: "relative",
4242
display: "flex",
4343
flexGrow: 1,
44+
minHeight: '20vh',
4445
})
4546

4647
const Image = styled("img")({

src/components/RawJSONEditor/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const RawJSONEditor = ({ content, onSave }) => {
2121
theme="github"
2222
mode="javascript"
2323
width="100%"
24+
height="calc(100vh - 80px)"
2425
value={jsonText}
2526
editorProps={{ $blockScrolling: Infinity }}
2627
onChange={(t) => setJSONText(t)}

src/components/WorkspaceContainer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default ({
6464
iconSidebarItems={[]}
6565
rightSidebarItems={[]}
6666
>
67-
<Box padding={2} style={{ width: "100%" }}>
67+
<Box padding={2, 0} style={{ width: "100%" }}>
6868
{children}
6969
</Box>
7070
</Workspace>

0 commit comments

Comments
 (0)