@@ -21,7 +21,7 @@ import {
21
21
labelCss ,
22
22
sectionNames ,
23
23
} from "lowcoder-design" ;
24
- import { Card , Divider , Flex , Input } from "antd" ;
24
+ import { Card , Divider , Flex , Input , List } from "antd" ;
25
25
import { genRandomKey } from "comps/utils/idGenerator" ;
26
26
import dsl from "./detail/previewDsl" ;
27
27
import { NameGenerator } from "comps/utils" ;
@@ -330,31 +330,32 @@ export const ThemeCompPanel = (props: any) => {
330
330
// )
331
331
332
332
return (
333
- < Card
334
- style = { { marginBottom : "20px" , minHeight : "200px" } }
335
- bodyStyle = { { padding : '24px 14px' } }
336
- >
337
333
< Flex style = { {
338
- height : "650px" ,
339
334
overflow : "hidden" ,
340
335
gap : "middle" ,
341
336
} } >
342
- < RightPanelContentWrapper style = { {
343
- padding : "0" ,
344
- overflow : "auto" ,
345
- } } >
346
- < Input . Search
347
- placeholder = "Search components"
348
- value = { searchValue }
349
- onChange = { ( e ) => setSearchValue ( e . target . value ) }
350
- style = { { marginBottom : 16 } }
351
- />
352
- < PropertySectionContext . Provider
353
- value = { propertySectionContextValue }
354
- >
355
- { compList }
356
- </ PropertySectionContext . Provider >
357
- </ RightPanelContentWrapper >
337
+ < List
338
+ bordered
339
+ itemLayout = "vertical"
340
+ >
341
+ < List . Item >
342
+ < Input . Search
343
+ placeholder = "Search components"
344
+ value = { searchValue }
345
+ onChange = { ( e ) => setSearchValue ( e . target . value ) }
346
+ style = { { marginBottom : 16 } }
347
+ />
348
+ </ List . Item >
349
+ < List . Item >
350
+ < div style = { { overflow : "auto" , height : "540px" } } >
351
+ < PropertySectionContext . Provider
352
+ value = { propertySectionContextValue }
353
+ >
354
+ { compList }
355
+ </ PropertySectionContext . Provider >
356
+ </ div >
357
+ </ List . Item >
358
+ </ List >
358
359
< Divider type = "vertical" style = { { height : "630px" } } />
359
360
< div style = { { flex : "1" } } >
360
361
{ appPreview }
@@ -368,6 +369,5 @@ export const ThemeCompPanel = (props: any) => {
368
369
{ stylePropertyView }
369
370
</ div >
370
371
</ Flex >
371
- </ Card >
372
372
) ;
373
373
} ;
0 commit comments