Skip to content
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
4 changes: 3 additions & 1 deletion client/src/Components/v2/inputs/FieldLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ interface FieldLabelProps {

export const FieldLabel = ({ children, required = false, htmlFor }: FieldLabelProps) => {
const theme = useTheme();

if (children === " ") {
children = "\u00A0";
}
return (
<Typography
component="label"
Expand Down
6 changes: 6 additions & 0 deletions client/src/Components/v2/inputs/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ const SelectInputInner = <T,>(
)}
sx={{
height: "34px",
"& .MuiSelect-select": {
display: "flex",
alignItems: "center",
height: "100%",
boxSizing: "border-box",
},
"& .MuiSelect-icon": {
right: theme.spacing(3),
},
Expand Down
3 changes: 2 additions & 1 deletion client/src/Pages/Maintenance/create/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ const CreateMaintenanceWindowPage = () => {
/>
<Stack
direction="row"
alignItems="flex-end"
alignItems="flex-start"
spacing={theme.spacing(4)}
>
<Controller
Expand Down Expand Up @@ -248,6 +248,7 @@ const CreateMaintenanceWindowPage = () => {
defaultValue={defaults.durationUnit}
render={({ field }) => (
<Select
fieldLabel=" "
value={field.value}
onChange={field.onChange}
sx={{ minWidth: 120 }}
Expand Down