Skip to content

Commit a02db39

Browse files
committed
Fix shifted label; Removed unused stuff
1 parent 45c7233 commit a02db39

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

ui/src/common/DateTimeSelector.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ interface DateTimeSelectorProps {
99
showDate: boolean;
1010
label: string;
1111
popoverOpen?: (open: boolean) => void;
12-
style?: object;
1312
}
1413

1514
export const DateTimeSelector: React.FC<DateTimeSelectorProps> = React.memo(
16-
({selectedDate, onSelectDate, showDate, label, popoverOpen = () => {}, style = null}) => {
15+
({selectedDate, onSelectDate, showDate, label, popoverOpen = () => {}}) => {
1716
const [open, setOpen] = React.useState(false);
1817
const localeData = moment.localeData();
1918
const time = localeData.longDateFormat('LT').replace('A', 'a');
@@ -23,10 +22,11 @@ export const DateTimeSelector: React.FC<DateTimeSelectorProps> = React.memo(
2322

2423
return (
2524
<KeyboardDateTimePicker
25+
className="time-picker"
2626
variant="dialog"
2727
InputProps={{disableUnderline: true}}
2828
title={selectedDate.format()}
29-
style={{minWidth: width, maxWidth: width, ...style}}
29+
style={{width: width}}
3030
PopoverProps={{
3131
onEntered: () => {
3232
popoverOpen(true);

ui/src/common/TagChip.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export const TagChip = ({color, label}: {label: string; color: string}) => {
1515
color: textColor,
1616
cursor: 'text',
1717
minHeight: '32px',
18-
height: 'auto',
1918
whiteSpace: 'normal',
2019
wordBreak: 'break-word',
2120
}}

ui/src/global.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,26 @@ html {
1010
}
1111

1212
/* The wrapping box around the input and icon for the datetime picker */
13-
.MuiInputBase-root.MuiInput-root.MuiInputBase-formControl.MuiInput-formControl.MuiInputBase-adornedEnd {
13+
.time-picker .MuiInputBase-root.MuiInput-root.MuiInputBase-formControl.MuiInput-formControl.MuiInputBase-adornedEnd {
1414
margin-top: 0;
1515
}
1616

1717
/* The calendar icon for the datetime picker */
18-
.MuiInputBase-root.MuiInputBase-formControl.MuiInputBase-adornedEnd
18+
.time-picker
19+
.MuiInputBase-root.MuiInputBase-formControl.MuiInputBase-adornedEnd
1920
.MuiInputAdornment-root.MuiInputAdornment-positionEnd
2021
.MuiButtonBase-root.MuiIconButton-root {
2122
position: absolute;
2223
left: 0;
2324
}
2425

2526
/* The label for the datetime picker */
26-
.MuiFormControl-root.MuiTextField-root .MuiFormLabel-root.MuiInputLabel-root.MuiInputLabel-formControl {
27+
.time-picker.MuiFormControl-root.MuiTextField-root .MuiFormLabel-root.MuiInputLabel-root.MuiInputLabel-formControl {
2728
margin-left: 48px;
2829
}
2930

3031
/* The input box for the datetime picker */
31-
.MuiFormControl-root.MuiTextField-root .MuiInputBase-input.MuiInput-input.MuiInputBase-inputAdornedEnd {
32+
.time-picker.MuiFormControl-root.MuiTextField-root .MuiInputBase-input.MuiInput-input.MuiInputBase-inputAdornedEnd {
3233
margin-left: 48px;
3334
/* margin-top: 8px; */
3435
margin-top: 12px;

0 commit comments

Comments
 (0)