@@ -13,6 +13,8 @@ import {
1313 ExpandIcon ,
1414 CompressIcon ,
1515 TextSizeIcon ,
16+ PencilIcon ,
17+ ShowBorderIcon ,
1618} from "lowcoder-design" ;
1719import { useContext } from "react" ;
1820import styled from "styled-components" ;
@@ -250,19 +252,11 @@ const StyleContent = styled.div`
250252 }
251253` ;
252254
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;` ;
266260const ResetIcon = styled ( IconReset ) `
267261 &:hover g g {
268262 stroke: #315efb;
@@ -366,22 +360,29 @@ export function styleControl<T extends readonly SingleColorConfig[]>(colorConfig
366360 { filterText : config . label } ,
367361 < div key = { index } >
368362 { ( name === "radius" ||
369- name === "borderWidth" ||
370363 name === "gap" ||
371364 name === "cardRadius" )
372365 ? (
373366 children [ name ] as InstanceType < typeof StringControl >
374367 ) . propertyView ( {
375368 label : config . label ,
376- preInputNode : < RadiusIcon title = "" /> ,
369+ preInputNode : < RadiusIcon title = "Radius " /> ,
377370 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+ } )
379380 : name === "margin"
380381 ? (
381382 children [ name ] as InstanceType < typeof StringControl >
382383 ) . propertyView ( {
383384 label : config . label ,
384- preInputNode : < MarginIcon title = "" /> ,
385+ preInputNode : < MarginIcon title = "Margin " /> ,
385386 placeholder : props [ name ] ,
386387 } )
387388 : ( name === "padding" ||
@@ -392,7 +393,7 @@ export function styleControl<T extends readonly SingleColorConfig[]>(colorConfig
392393 children [ name ] as InstanceType < typeof StringControl >
393394 ) . propertyView ( {
394395 label : config . label ,
395- preInputNode : < PaddingIcon title = "" /> ,
396+ preInputNode : < PaddingIcon title = "Padding " /> ,
396397 placeholder : props [ name ] ,
397398 } )
398399 : name === "textSize"
0 commit comments