77 Box ,
88 Button ,
99} from "@mui/material" ;
10- import { Schedule } from "@mui/icons-material" ;
1110import { Dropdown } from "../../ui/DropdownMui" ;
1211import { validMomentTimezones } from "../../../constants/const" ;
1312import { useGlobalInfoStore } from "../../../context/globalInfo" ;
@@ -188,8 +187,8 @@ export const ScheduleSettingsPage = ({
188187 display : "flex" ,
189188 flexDirection : "column" ,
190189 alignItems : "flex-start" ,
191- "& > *" : { marginBottom : "20px" } ,
192- marginTop : "-20px " ,
190+ gap : 3 ,
191+ width : "100% " ,
193192 } }
194193 >
195194 < >
@@ -215,7 +214,7 @@ export const ScheduleSettingsPage = ({
215214 { t ( "schedule_settings.at_around" ) } : { schedule . atTimeStart } ,{ " " }
216215 { schedule . timezone } { t ( "schedule_settings.timezone" ) }
217216 </ Typography >
218- < Box mt = { 2 } display = "flex" justifyContent = "space-between" >
217+ < Box sx = { { mt : 2 , width : "100%" } } >
219218 < Button
220219 onClick = { deleteRobotSchedule }
221220 variant = "outlined"
@@ -231,7 +230,7 @@ export const ScheduleSettingsPage = ({
231230 ) : (
232231 < >
233232 < Box sx = { { display : "flex" , alignItems : "center" , width : "100%" } } >
234- < Typography sx = { { marginRight : "10px" } } >
233+ < Typography sx = { { width : "200px" , flexShrink : 0 } } >
235234 { t ( "schedule_settings.labels.run_once_every" ) }
236235 </ Typography >
237236 < TextField
@@ -263,7 +262,7 @@ export const ScheduleSettingsPage = ({
263262 </ Box >
264263
265264 < Box sx = { { display : "flex" , alignItems : "center" , width : "100%" } } >
266- < Typography sx = { { marginBottom : "5px " , marginRight : "25px" } } >
265+ < Typography sx = { { width : "200px " , flexShrink : 0 } } >
267266 { [ "MONTHS" , "WEEKS" ] . includes ( settings . runEveryUnit )
268267 ? t ( "schedule_settings.labels.start_from_label" )
269268 : t ( "schedule_settings.labels.start_from_label" ) }
@@ -288,7 +287,7 @@ export const ScheduleSettingsPage = ({
288287
289288 { settings . runEveryUnit === "MONTHS" && (
290289 < Box sx = { { display : "flex" , alignItems : "center" , width : "100%" } } >
291- < Typography sx = { { marginBottom : "5px " , marginRight : "25px" } } >
290+ < Typography sx = { { width : "200px " , flexShrink : 0 } } >
292291 { t ( "schedule_settings.labels.on_day_of_month" ) }
293292 </ Typography >
294293 < TextField
@@ -305,10 +304,10 @@ export const ScheduleSettingsPage = ({
305304
306305 { [ "MINUTES" , "HOURS" ] . includes ( settings . runEveryUnit ) ? (
307306 < Box sx = { { display : "flex" , alignItems : "center" , width : "100%" } } >
308- < Box sx = { { marginRight : "20px" } } >
309- < Typography sx = { { marginBottom : "5px" } } >
310- { t ( "schedule_settings.labels.in_between" ) }
311- </ Typography >
307+ < Typography sx = { { width : "200px" , flexShrink : 0 } } >
308+ { t ( "schedule_settings.labels.in_between" ) }
309+ </ Typography >
310+ < Box sx = { { display : "flex" , gap : 1 } } >
312311 < TextField
313312 type = "time"
314313 value = { settings . atTimeStart }
@@ -329,7 +328,7 @@ export const ScheduleSettingsPage = ({
329328 </ Box >
330329 ) : (
331330 < Box sx = { { display : "flex" , alignItems : "center" , width : "100%" } } >
332- < Typography sx = { { marginBottom : "5px " , marginRight : "10px" } } >
331+ < Typography sx = { { width : "200px " , flexShrink : 0 } } >
333332 { t ( "schedule_settings.at_around" ) }
334333 </ Typography >
335334 < TextField
@@ -344,7 +343,7 @@ export const ScheduleSettingsPage = ({
344343 ) }
345344
346345 < Box sx = { { display : "flex" , alignItems : "center" , width : "100%" } } >
347- < Typography sx = { { marginRight : "10px" } } >
346+ < Typography sx = { { width : "200px" , flexShrink : 0 } } >
348347 { t ( "schedule_settings.timezone" ) }
349348 </ Typography >
350349 < Dropdown
@@ -370,4 +369,4 @@ export const ScheduleSettingsPage = ({
370369 </ Box >
371370 </ RobotConfigPage >
372371 ) ;
373- } ;
372+ }
0 commit comments