@@ -13,6 +13,8 @@ import {
13
13
ExpandIcon ,
14
14
CompressIcon ,
15
15
TextSizeIcon ,
16
+ PencilIcon ,
17
+ ShowBorderIcon ,
16
18
} from "lowcoder-design" ;
17
19
import { useContext } from "react" ;
18
20
import styled from "styled-components" ;
@@ -250,19 +252,11 @@ const StyleContent = styled.div`
250
252
}
251
253
` ;
252
254
253
- const RadiusIcon = styled ( IconRadius ) `
254
- margin: 0 8px 0 -2px;
255
- ` ;
256
-
257
- const MarginIcon = styled ( ExpandIcon ) `
258
- margin: 0 8px 0 -2px;
259
- ` ;
260
- const PaddingIcon = styled ( CompressIcon ) `
261
- margin: 0 8px 0 -2px;
262
- ` ;
263
- const StyledTextSizeIcon = styled ( TextSizeIcon ) `
264
- margin: 0 8px 0 -2px;
265
- ` ;
255
+ const RadiusIcon = styled ( IconRadius ) ` margin: 0 8px 0 -2px;` ;
256
+ const BorderIcon = styled ( ShowBorderIcon ) ` margin: 0px 10px 0 3px;` ;
257
+ const MarginIcon = styled ( ExpandIcon ) ` margin: 0 8px 0 2px;` ;
258
+ const PaddingIcon = styled ( CompressIcon ) ` margin: 0 8px 0 2px;` ;
259
+ const StyledTextSizeIcon = styled ( TextSizeIcon ) ` margin: 0 8px 0 0px;` ;
266
260
const ResetIcon = styled ( IconReset ) `
267
261
&:hover g g {
268
262
stroke: #315efb;
@@ -366,22 +360,29 @@ export function styleControl<T extends readonly SingleColorConfig[]>(colorConfig
366
360
{ filterText : config . label } ,
367
361
< div key = { index } >
368
362
{ ( name === "radius" ||
369
- name === "borderWidth" ||
370
363
name === "gap" ||
371
364
name === "cardRadius" )
372
365
? (
373
366
children [ name ] as InstanceType < typeof StringControl >
374
367
) . propertyView ( {
375
368
label : config . label ,
376
- preInputNode : < RadiusIcon title = "" /> ,
369
+ preInputNode : < RadiusIcon title = "Radius " /> ,
377
370
placeholder : props [ name ] ,
378
- } )
371
+ } )
372
+ : name === "borderWidth"
373
+ ? (
374
+ children [ name ] as InstanceType < typeof StringControl >
375
+ ) . propertyView ( {
376
+ label : config . label ,
377
+ preInputNode : < BorderIcon title = "Border-Width" /> ,
378
+ placeholder : props [ name ] ,
379
+ } )
379
380
: name === "margin"
380
381
? (
381
382
children [ name ] as InstanceType < typeof StringControl >
382
383
) . propertyView ( {
383
384
label : config . label ,
384
- preInputNode : < MarginIcon title = "" /> ,
385
+ preInputNode : < MarginIcon title = "Margin " /> ,
385
386
placeholder : props [ name ] ,
386
387
} )
387
388
: ( name === "padding" ||
@@ -392,7 +393,7 @@ export function styleControl<T extends readonly SingleColorConfig[]>(colorConfig
392
393
children [ name ] as InstanceType < typeof StringControl >
393
394
) . propertyView ( {
394
395
label : config . label ,
395
- preInputNode : < PaddingIcon title = "" /> ,
396
+ preInputNode : < PaddingIcon title = "Padding " /> ,
396
397
placeholder : props [ name ] ,
397
398
} )
398
399
: name === "textSize"
0 commit comments