@@ -17,27 +17,31 @@ def homepage_layout(user_token, api_cameras, lang="fr"):
1717 [
1818 dbc .Row ([
1919 dbc .Col (
20- [
21- html .Label (translate ("detections_to_fetch" , lang ), className = "mt-2" ),
22- dcc .Input (
23- id = "detection_fetch_limit_input" ,
24- type = "number" ,
25- min = 1 ,
26- max = 50 ,
27- step = 1 ,
28- value = 10 ,
29- style = {"width" : "100%" },
30- ),
31- html .Label (translate ("fetch_order" , lang ), className = "mt-3" ),
32- dbc .Checklist (
33- id = "detection_fetch_desc" ,
34- options = [{"value" : True }],
35- value = [True ],
36- switch = True ,
37- ),
38- html .Hr (className = "my-3" ),
39- create_event_list (),
40- ],
20+ html .Div (
21+ className = "common-style" ,
22+ style = {"padding" : "8px" },
23+ children = [
24+ html .Label (translate ("detections_to_fetch" , lang ), className = "mt-2" ),
25+ dcc .Input (
26+ id = "detection_fetch_limit_input" ,
27+ type = "number" ,
28+ min = 1 ,
29+ max = 50 ,
30+ step = 1 ,
31+ value = 10 ,
32+ style = {"width" : "100%" },
33+ ),
34+ html .Label (translate ("fetch_order" , lang ), className = "mt-3" ),
35+ dbc .Checklist (
36+ id = "detection_fetch_desc" ,
37+ options = [{"value" : True }],
38+ value = [True ],
39+ switch = True ,
40+ ),
41+ html .Hr (className = "my-3" ),
42+ create_event_list (),
43+ ],
44+ ),
4145 width = 2 ,
4246 className = "mb-4" ,
4347 ),
0 commit comments