style: arrow bivider
This commit is contained in:
@@ -71,7 +71,13 @@ const AddCommunityModal: React.FC<{
|
|||||||
onEnable={handleOnEnable}
|
onEnable={handleOnEnable}
|
||||||
></CommunityBackends>
|
></CommunityBackends>
|
||||||
</ColumnWrapper>
|
</ColumnWrapper>
|
||||||
<Separator showArrow={false}></Separator>
|
<Separator
|
||||||
|
styles={{
|
||||||
|
arrow: {
|
||||||
|
top: 8
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
></Separator>
|
||||||
</div>
|
</div>
|
||||||
<ColumnWrapper
|
<ColumnWrapper
|
||||||
maxHeight={'calc(100vh - 90px)'}
|
maxHeight={'calc(100vh - 90px)'}
|
||||||
|
|||||||
@@ -2,14 +2,19 @@ import { Divider } from 'antd';
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import '../style/separator.less';
|
import '../style/separator.less';
|
||||||
|
|
||||||
const Separator: React.FC<{ showArrow?: boolean }> = ({ showArrow = true }) => {
|
const Separator: React.FC<{
|
||||||
|
showArrow?: boolean;
|
||||||
|
styles: {
|
||||||
|
arrow?: React.CSSProperties;
|
||||||
|
};
|
||||||
|
}> = ({ showArrow = true, styles }) => {
|
||||||
return (
|
return (
|
||||||
<div className="separator">
|
<div className="separator">
|
||||||
<Divider
|
<Divider
|
||||||
orientation="vertical"
|
orientation="vertical"
|
||||||
style={{ height: 'calc(100vh - 89px)', marginInline: '0px' }}
|
style={{ height: 'calc(100vh - 89px)', marginInline: '0px' }}
|
||||||
></Divider>
|
></Divider>
|
||||||
{showArrow && <span className="shape"></span>}
|
{showArrow && <span className="shape" style={styles.arrow}></span>}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user