Fix header

This commit is contained in:
Bill 2022-03-15 12:05:54 -04:00
parent e069efcb10
commit 09aabe031b

View File

@ -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>