Skip to content

Increase labels id width to support large name #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion client/src/ConfigureImageClassification/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default ({ config, onChange }) => {
{
cellType: "text",
name: "description",
title: t("configuration.labels.option.id"),
title: t("configuration.labels.option.description"),
},
],
}
Expand Down Expand Up @@ -79,6 +79,11 @@ export default ({ config, onChange }) => {
height: '2.2rem !important',
minHeight: '2.2rem !important',
lineHeight: '2.2rem !important',
},
'@media (min-width: 600px)': {
'.MuiInputBase-input': {
width: '350px !important',
}
}
}} />

Expand Down
5 changes: 5 additions & 0 deletions client/src/ConfigureImageSegmentation/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ export default ({ config, onChange }) => {
height: '2.2rem !important',
minHeight: '2.2rem !important',
lineHeight: '2.2rem !important',
},
'@media (min-width: 600px)': {
'.MuiInputBase-input': {
width: '350px !important',
}
}
}} />
<Survey
Expand Down
12 changes: 6 additions & 6 deletions client/src/ImageUpload/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ const ImageUpload = ({ onImageUpload, settingsImages }) => {
});

return (
<Box>
<>
<Box
{...getRootProps()}
sx={{
border: '2px dashed #ccc',
padding: '1rem',
padding: isSmallDevice ? '0.5rem' :'1rem',
textAlign: 'center',
cursor: 'pointer',
marginBottom: '1rem',
Expand All @@ -156,7 +156,7 @@ const ImageUpload = ({ onImageUpload, settingsImages }) => {
flexDirection: 'column',
borderRadius: '4px',
minHeight: '200px',
width: isSmallDevice ? 'auto': '400px'
width: isSmallDevice ? 'auto': '52vw',
}}
>
<input {...getInputProps()} data-testid="file-input" />
Expand Down Expand Up @@ -197,8 +197,8 @@ const ImageUpload = ({ onImageUpload, settingsImages }) => {
alt="preview"
onError={() => handleImageError(index)}
style={{
width: '100px',
height: '100px',
width: isSmallDevice ? '65px' : '82px',
height: isSmallDevice ? '65px' : '82px',
objectFit: 'cover',
borderRadius: '4px',
marginBottom: '0.5rem',
Expand All @@ -214,7 +214,7 @@ const ImageUpload = ({ onImageUpload, settingsImages }) => {
</Box>
))}
</Box>
</Box>
</>
);
};

Expand Down
4 changes: 2 additions & 2 deletions client/src/SetupPage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export const SetupPage = ({setConfiguration, settings, setShowLabel, showAnnotat
</Tabs>
</Box>
{currentTab === "datatype" && (
<Box minWidth="35vw" paddingTop={"2rem"}>
<Box minWidth="55vw" paddingTop={"2rem"}>
<ConfigurationTask config={settings} onChange={updateTaskInfo} />
<NoteSection
icon={Info}
Expand Down Expand Up @@ -196,7 +196,7 @@ export const SetupPage = ({setConfiguration, settings, setShowLabel, showAnnotat
)}
{currentTab === "images" && (
<>
<Box sx={{ padding: '2rem' }} maxWidth={"600px"}>
<Box sx={{ padding: '2rem' }} width={isSmallDevice ? "auto" : "55vw"}>
<Typography gutterBottom sx={{ fontWeight: 'bold', color: 'rgb(66, 66, 66)', fontSize: '18px' }}>
{t("btn.upload_images")}
</Typography>
Expand Down
Loading