Skip to content

Commit

Permalink
media rules vqa (#2904)
Browse files Browse the repository at this point in the history
  • Loading branch information
agalin920 authored Aug 1, 2024
1 parent 21fc276 commit 2362709
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/apps/content-editor/src/app/components/FieldTypeMedia.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ export const FieldTypeMedia = ({
</Stack>
</Box>
{selectionError && (
<Typography variant="body2" color="error">
<Typography variant="body2" color="error.dark" mt={0.5}>
{selectionError}
</Typography>
)}
Expand Down Expand Up @@ -527,7 +527,7 @@ export const FieldTypeMedia = ({
)}
</Stack>
{selectionError && (
<Typography variant="body2" color="error">
<Typography variant="body2" color="error.dark" mt={0.5}>
{selectionError}
</Typography>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,16 @@ export const DefaultValue = ({
variant="body3"
color="text.secondary"
fontWeight="600"
sx={{ mb: 1, display: "block" }}
sx={{ display: "block" }}
>
Set a predefined value for this field
</Typography>
</Box>
}
/>
<Box flex={1}>
{isDefaultValueEnabled && (

{isDefaultValueEnabled && (
<Box flex={1} mt={1}>
<FormControl error={!!error} fullWidth>
<DefaultValueInput
type={type}
Expand All @@ -105,8 +106,8 @@ export const DefaultValue = ({
</Box>
</FormHelperText>
</FormControl>
)}
</Box>
</Box>
)}
</Box>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export const MediaRules = ({
)}

{Boolean(fieldData[rule.name]) && rule.name === "fileExtensions" && (
<Box ml={4} mt={2.5}>
<Box ml={3.5} mt={2.5}>
<InputLabel>Extensions *</InputLabel>
<Autocomplete
multiple
Expand Down

0 comments on commit 2362709

Please sign in to comment.