mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-22 22:30:52 +01:00
Fix header
This commit is contained in:
parent
e069efcb10
commit
09aabe031b
@ -29,10 +29,10 @@ export const NitroCardHeaderView: FC<NitroCardHeaderViewProps> = props =>
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<Column center classNames={ getClassNames } { ...rest }>
|
||||
<Flex fullWidth center position="relative">
|
||||
<Column center position="relative" classNames={ getClassNames } { ...rest }>
|
||||
<Flex fullWidth center>
|
||||
<span className="nitro-card-header-text">{ headerText }</span>
|
||||
<Base position="absolute" className="top-1 end-0 nitro-card-header-close" onMouseDownCapture={ onMouseDown } onClick={ onCloseClick }>
|
||||
<Base position="absolute" className="end-2 nitro-card-header-close" onMouseDownCapture={ onMouseDown } onClick={ onCloseClick }>
|
||||
<FontAwesomeIcon icon="times" />
|
||||
</Base>
|
||||
</Flex>
|
||||
|
Loading…
Reference in New Issue
Block a user