Skip to content

Commit dad3997

Browse files
committed
Fixed Chart styles UI of right panel.
1 parent 10cb9eb commit dad3997

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed

client/packages/lowcoder/src/comps/controls/styleControl.tsx

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -999,16 +999,7 @@ const LineHeightPropIcon = styled(LineHeightIcon)`
999999
`;
10001000

10011001
const MarginIcon = styled(ExpandIcon)` margin: 0 8px 0 2px; color: #888`;
1002-
const DirectionIcon = styled(ExpandIcon)` margin: 0 8px 0 2px; color: #888`;
1003-
const ChartOpacity = styled(OpacityIcon)` margin: 0 8px 0 2px; color: #888`;
1004-
const ChartBoxShadow = styled(ShadowIcon)` margin: 0 8px 0 2px; color: #888`;
1005-
const ChartBorderStyle = styled(BorderStyleIcon)` margin: 0 8px 0 2px; color: #888`;
1006-
const ChartBorderRadius = styled(BorderRadiusIcon)` margin: 0 8px 0 2px; color: #888`;
1007-
const ChartBorderWidth = styled(BorderWidthIcon)` margin: 0 8px 0 2px; color: #888`;
1008-
const ChartTextSize = styled(TextSizeIcon)` margin: 0 8px 0 2px; color: #888`;
1009-
const ChartTextWeight = styled(TextWeightIcon)` margin: 0 8px 0 2px; color: #888`;
1010-
const ChartFontFamily = styled(FontFamilyIcon)` margin: 0 8px 0 2px; color: #888`;
1011-
const ChartFontStyle = styled(TextStyleIcon)` margin: 0 8px 0 2px; color: #888`;
1002+
const DirectionIcon = styled(ExpandIcon)` margin: 0 13px 0 2px; color: #888`;
10121003
const PaddingIcon = styled(CompressIcon)` margin: 0 8px 0 2px; color: #888`;
10131004
const RadiusPropIcon = styled(BorderRadiusIcon)` width: 24px; margin: 0 11px 0 0px; color: #888`;
10141005
const BorderPropIcon = styled(BorderWidthIcon)` margin: 0 8px 0 -3px; padding: 3px; color: #888`;
@@ -1035,7 +1026,7 @@ const BoxShadowColorPropIcon = styled(BorderWidthIcon)`
10351026

10361027
const ChartBackgroundColorPropIcon = styled(BorderWidthIcon)`
10371028
margin: 0 8px 0 -3px;
1038-
padding: 3px;
1029+
padding: 13px;
10391030
color: #888;
10401031
`;
10411032
const ChartGradientColorPropIcon = styled(BorderWidthIcon)`
@@ -1406,7 +1397,7 @@ export function styleControl<T extends readonly SingleColorConfig[]>(
14061397
>
14071398
).propertyView({
14081399
label: config.label,
1409-
preInputNode: <ChartOpacity title="chartOpacity" />,
1400+
preInputNode: <OpacityPropIcon title="chartOpacity" />,
14101401
placeholder: props[name],
14111402
})
14121403
: name === 'chartBoxShadow'
@@ -1416,7 +1407,7 @@ export function styleControl<T extends readonly SingleColorConfig[]>(
14161407
>
14171408
).propertyView({
14181409
label: config.label,
1419-
preInputNode: <ChartBoxShadow title="chartBoxShadow" />,
1410+
preInputNode: <BoxShadowPropIcon title="chartBoxShadow" />,
14201411
placeholder: props[name],
14211412
})
14221413
: name === 'chartBorderStyle'
@@ -1426,7 +1417,7 @@ export function styleControl<T extends readonly SingleColorConfig[]>(
14261417
>
14271418
).propertyView({
14281419
label: config.label,
1429-
preInputNode: <ChartBorderStyle title="chartBorderStyle" />,
1420+
preInputNode: <BorderStylePropIcon title="chartBorderStyle" />,
14301421
placeholder: props[name],
14311422
})
14321423
: name === 'chartBorderRadius'
@@ -1436,7 +1427,7 @@ export function styleControl<T extends readonly SingleColorConfig[]>(
14361427
>
14371428
).propertyView({
14381429
label: config.label,
1439-
preInputNode: <ChartBorderRadius title="chartBorderRadius" />,
1430+
preInputNode: <RadiusPropIcon title="chartBorderRadius" />,
14401431
placeholder: props[name],
14411432
})
14421433
: name === 'chartBorderWidth'
@@ -1446,7 +1437,7 @@ export function styleControl<T extends readonly SingleColorConfig[]>(
14461437
>
14471438
).propertyView({
14481439
label: config.label,
1449-
preInputNode: <ChartBorderWidth title="chartBorderWidth" />,
1440+
preInputNode: <BorderPropIcon title="chartBorderWidth" />,
14501441
placeholder: props[name],
14511442
})
14521443
: name === 'chartTextSize'
@@ -1456,7 +1447,7 @@ export function styleControl<T extends readonly SingleColorConfig[]>(
14561447
>
14571448
).propertyView({
14581449
label: config.label,
1459-
preInputNode: <ChartTextSize title="chartTextSize" />,
1450+
preInputNode: <StyledTextSizeIcon title="chartTextSize" />,
14601451
placeholder: props[name],
14611452
})
14621453
: name === 'chartTextWeight'
@@ -1466,7 +1457,7 @@ export function styleControl<T extends readonly SingleColorConfig[]>(
14661457
>
14671458
).propertyView({
14681459
label: config.label,
1469-
preInputNode: <ChartTextWeight title="chartTextWeight" />,
1460+
preInputNode: <StyledTextWeightIcon title="chartTextWeight" />,
14701461
placeholder: props[name],
14711462
})
14721463
: name === 'chartFontFamily'
@@ -1476,7 +1467,7 @@ export function styleControl<T extends readonly SingleColorConfig[]>(
14761467
>
14771468
).propertyView({
14781469
label: config.label,
1479-
preInputNode: <ChartFontFamily title="chartFontFamily" />,
1470+
preInputNode: <StyledFontFamilyIcon title="chartFontFamily" />,
14801471
placeholder: props[name],
14811472
})
14821473
: name === 'chartFontStyle'
@@ -1486,7 +1477,7 @@ export function styleControl<T extends readonly SingleColorConfig[]>(
14861477
>
14871478
).propertyView({
14881479
label: config.label,
1489-
preInputNode: <ChartFontStyle title="chartFontStyle" />,
1480+
preInputNode: <StyledFontFamilyIcon title="chartFontStyle" />,
14901481
placeholder: props[name],
14911482
})
14921483
: name === 'animationIterationCount'

0 commit comments

Comments
 (0)