Skip to content

Commit

Permalink
fix(ui): button margin (#6699)
Browse files Browse the repository at this point in the history
Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
  • Loading branch information
tczhao authored Sep 10, 2021
1 parent 4b5d7ec commit 2e174bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ui/src/app/shared/components/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ export const Button = ({
icon?: Icon;
className?: string;
}) => (
<button className={'argo-button ' + (!outline ? 'argo-button--base' : 'argo-button--base-o') + ' ' + (className || '')} title={title} onClick={onClick}>
<button
style={{marginBottom: 2, marginRight: 2}}
className={'argo-button ' + (!outline ? 'argo-button--base' : 'argo-button--base-o') + ' ' + (className || '')}
title={title}
onClick={onClick}>
{icon && <i className={'fa fa-' + icon} />} {children}
</button>
);
2 changes: 1 addition & 1 deletion ui/src/app/shared/components/upload-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const UploadButton = <T extends any>(props: {onUpload: (value: T) => void
};

return (
<label className='argo-button argo-button--base-o' key='upload-file'>
<label style={{marginBottom: 2, marginRight: 2}} className='argo-button argo-button--base-o' key='upload-file'>
<input type='file' onChange={e => handleFiles(e.target.files)} style={{display: 'none'}} />
<i className='fa fa-upload' /> Upload file
</label>
Expand Down

0 comments on commit 2e174bd

Please sign in to comment.