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