Skip to content

Commit

Permalink
style: Align with the design
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Nov 26, 2024
1 parent 649862e commit 2bf18ae
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
33 changes: 17 additions & 16 deletions app/components/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ export const MinimalisticSelect = (props: MinimalisticSelectProps) => {
onChange,
smaller = false,
disabled,
sx,
...rest
} = props;

Expand All @@ -559,21 +560,6 @@ export const MinimalisticSelect = (props: MinimalisticSelectProps) => {
</Label>
)}
<MUISelect
sx={{
borderColor: "transparent",
fontSize: smaller ? ["0.625rem", "0.75rem", "0.75rem"] : "inherit",
lineHeight: "normal !important",

backgroundColor: "transparent",
p: 0,
pr: 2,
pl: 1,
mr: 1, // Fix for Chrome which cuts of the label otherwise
":focus": {
outline: "none",
borderColor: "primary.main",
},
}}
size={smaller ? "small" : "medium"}
variant="standard"
id={id}
Expand All @@ -586,13 +572,28 @@ export const MinimalisticSelect = (props: MinimalisticSelectProps) => {
{...props}
style={{
...props.style,
right: 12,
transition: "transform 0.1s",
}}
>
<Icon name="chevronDown" size={16} />
</span>
)}
sx={{
borderColor: "transparent",
fontSize: smaller ? ["0.625rem", "0.75rem", "0.75rem"] : "inherit",
lineHeight: "normal !important",
backgroundColor: "transparent",
p: 0,
pl: 1,
":focus": {
outline: "none",
borderColor: "primary.main",
},
"& .MuiInput-input": {
paddingRight: "1.25rem !important",
},
...sx,
}}
{...rest}
>
{options.map((opt) => (
Expand Down
2 changes: 1 addition & 1 deletion app/configurator/components/add-dataset-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ export const DatasetDialog = ({
display="flex"
alignItems="center"
component="form"
gap="0.25rem"
gap="0.5rem"
mb="1rem"
onSubmit={handleSubmit}
>
Expand Down

0 comments on commit 2bf18ae

Please sign in to comment.