mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-04 05:08:42 +08:00
style: center icon when action buttons use icon-only (#5413)
This commit is contained in:
parent
45f7a9bc7c
commit
227b9c59a1
@ -47,6 +47,13 @@ const useStyles = genStyleHook('nb-action', (token) => {
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
'.ant-btn-icon': {
|
||||
marginInlineEnd: '0px !important',
|
||||
},
|
||||
'.nb-action-title': {
|
||||
marginInlineStart: '8px',
|
||||
},
|
||||
},
|
||||
};
|
||||
});
|
||||
|
@ -377,7 +377,6 @@ function RenderButton({
|
||||
if (!designable && (field?.data?.hidden || !aclCtx)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<SortableItem
|
||||
role="button"
|
||||
@ -393,7 +392,7 @@ function RenderButton({
|
||||
className={classnames(componentCls, hashId, className, 'nb-action')}
|
||||
type={type === 'danger' ? undefined : type}
|
||||
>
|
||||
{actionTitle}
|
||||
{actionTitle && <span className={icon ? 'nb-action-title' : null}>{actionTitle}</span>}
|
||||
<Designer {...designerProps} />
|
||||
</SortableItem>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user