@@ -135,15 +135,15 @@ export const CrudContainer: React.FC<ICrudContainer> = ({
135135 < Header
136136 style = { {
137137 background : colorPrimary ,
138- paddingInline : 24 ,
139- height : 56 ,
140- lineHeight : "56px" ,
138+ paddingInline : isMobile ? 0 : 20 ,
139+ height : isMobile ? 48 : 56 ,
140+ lineHeight : isMobile ? "48px" : "56px" ,
141141 boxShadow : "0 1px 4px rgba(0, 0, 0, 0.08)" ,
142142 } }
143143 >
144144 < Row justify = "space-between" align = "middle" >
145145 < Col >
146- < Space size = "middle" >
146+ < Space size = { isMobile ? 8 : 16 } >
147147 { isMobile && (
148148 < Menu
149149 style = { { background : "transparent" , minWidth : 0 } }
@@ -196,7 +196,7 @@ export const CrudContainer: React.FC<ICrudContainer> = ({
196196 </ Space >
197197 </ Col >
198198 < Col >
199- < Space size = "middle" >
199+ < Space size = { isMobile ? 8 : 16 } >
200200 { ! isMobile && (
201201 < span
202202 style = { {
@@ -273,11 +273,16 @@ export const CrudContainer: React.FC<ICrudContainer> = ({
273273 />
274274 </ Sider >
275275 ) }
276- < Layout style = { { padding : 24 , minHeight : "calc(100vh - 56px)" } } >
276+ < Layout
277+ style = { {
278+ padding : isMobile ? 8 : 24 ,
279+ minHeight : "calc(100vh - 56px)" ,
280+ } }
281+ >
277282 < Row
278283 justify = "space-between"
279284 align = "middle"
280- style = { { marginBottom : 16 } }
285+ style = { { marginBottom : isMobile ? 8 : 16 } }
281286 >
282287 < Col > { breadcrumbs } </ Col >
283288 { viewOnSite && (
@@ -305,9 +310,11 @@ export const CrudContainer: React.FC<ICrudContainer> = ({
305310 </ Row >
306311 }
307312 style = { {
308- marginTop : 0 ,
309- borderRadius : 8 ,
310- boxShadow : "0 1px 4px rgba(0, 0, 0, 0.06)" ,
313+ marginTop : isMobile ? 4 : 0 ,
314+ borderRadius : isMobile ? 6 : 8 ,
315+ boxShadow : isMobile
316+ ? "0 1px 3px rgba(0, 0, 0, 0.05)"
317+ : "0 1px 4px rgba(0, 0, 0, 0.06)" ,
311318 } }
312319 >
313320 < Skeleton loading = { isLoading } active = { true } >
0 commit comments