Commit 68625cd 1 parent d28f309 commit 68625cd Copy full SHA for 68625cd
File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import { Group as GroupOoui } from "@gisce/ooui" ;
3
3
import { Spinner } from "@/widgets/custom/Spinner" ;
4
- import { FieldSet , useLocale } from "@gisce/react-formiga-components" ;
4
+ import { FieldSet , useLocale } from "@gisce/react-formiga-components" ;
5
5
import iconMapper from "@/helpers/iconMapper" ;
6
6
7
7
type Props = {
@@ -15,7 +15,13 @@ function Group(props: Props): React.ReactElement {
15
15
const icon : React . ElementType | undefined = iconMapper ( ooui . icon || "" ) ;
16
16
const { t } = useLocale ( ) ;
17
17
return (
18
- < >
18
+ < div
19
+ style = { {
20
+ height : ooui . height ? ooui . height + "px" : "100%" ,
21
+ overflowX : "hidden" ,
22
+ overflowY : "auto" ,
23
+ } }
24
+ >
19
25
{ ( ooui . label || icon ) && showLabel ? (
20
26
< FieldSet label = { ooui . label } icon = { icon } >
21
27
< Spinner
@@ -31,7 +37,7 @@ function Group(props: Props): React.ReactElement {
31
37
responsiveBehaviour = { responsiveBehaviour }
32
38
/>
33
39
) }
34
- </ >
40
+ </ div >
35
41
) ;
36
42
}
37
43
You can’t perform that action at this time.
0 commit comments