style: arrow bivider

This commit is contained in:
jialin
2026-01-30 20:48:55 +08:00
committed by Lawrence Li
parent 0d5cd28d38
commit d3a0c6a330
2 changed files with 14 additions and 3 deletions
@@ -71,7 +71,13 @@ const AddCommunityModal: React.FC<{
onEnable={handleOnEnable}
></CommunityBackends>
</ColumnWrapper>
<Separator showArrow={false}></Separator>
<Separator
styles={{
arrow: {
top: 8
}
}}
></Separator>
</div>
<ColumnWrapper
maxHeight={'calc(100vh - 90px)'}
+7 -2
View File
@@ -2,14 +2,19 @@ import { Divider } from 'antd';
import React from 'react';
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 (
<div className="separator">
<Divider
orientation="vertical"
style={{ height: 'calc(100vh - 89px)', marginInline: '0px' }}
></Divider>
{showArrow && <span className="shape"></span>}
{showArrow && <span className="shape" style={styles.arrow}></span>}
</div>
);
};