Skip to content

Commit

Permalink
style(skeleton): update setting pane styles
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping committed Dec 25, 2023
1 parent 7332299 commit 0015209
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ export class SettingsPrimaryPane extends Component<ISettingsPrimaryPaneProps, {
{createIcon(settings.componentMeta?.icon, {
className: 'lc-settings-navigator-icon',
})}
<Title title={settings.componentMeta!.title} />
<span> x {settings.nodes.length}</span>
<div style={{ marginLeft: '5px' }}>
<Title title={settings.componentMeta!.title} />
<span> x {settings.nodes.length}</span>
</div>
</div>
);
}
Expand Down
5 changes: 4 additions & 1 deletion packages/utils/src/create-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ export function createIcon(
return cloneElement(icon, { ...props });
}
if (isReactComponent(icon)) {
return createElement(icon, { ...props });
return createElement(icon, {
class: props?.className,
...props,
});
}

return <Icon {...icon} {...props} />;
Expand Down

0 comments on commit 0015209

Please sign in to comment.