chore: update membersPage style
This commit is contained in:
@@ -122,6 +122,7 @@ export const InviteMemberModal = ({
|
|||||||
<Button
|
<Button
|
||||||
shape="circle"
|
shape="circle"
|
||||||
type="primary"
|
type="primary"
|
||||||
|
style={{ width: '364px', height: '38px', borderRadius: '40px' }}
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
await inviteMember(email);
|
await inviteMember(email);
|
||||||
onInviteSuccess();
|
onInviteSuccess();
|
||||||
@@ -143,10 +144,8 @@ const Header = styled('div')({
|
|||||||
|
|
||||||
const Content = styled('div')({
|
const Content = styled('div')({
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
padding: '0 48px',
|
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
gap: '16px',
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const ContentTitle = styled('h1')({
|
const ContentTitle = styled('h1')({
|
||||||
@@ -158,9 +157,8 @@ const ContentTitle = styled('h1')({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const Footer = styled('div')({
|
const Footer = styled('div')({
|
||||||
height: '70px',
|
height: '102px',
|
||||||
paddingLeft: '24px',
|
margin: '32px 0',
|
||||||
marginTop: '32px',
|
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ export const MembersPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
|
|||||||
member.user
|
member.user
|
||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
<StyledMemberListItem key={index}>
|
<StyledMemberListItem key={index}>
|
||||||
<StyledMemberNameContainer>
|
<StyledMemberNameContainer>
|
||||||
<StyledMemberAvatar
|
<StyledMemberAvatar
|
||||||
@@ -126,6 +127,7 @@ export const MembersPage = ({ workspace }: { workspace: WorkspaceUnit }) => {
|
|||||||
</Menu>
|
</Menu>
|
||||||
</StyledMoreVerticalButton>
|
</StyledMoreVerticalButton>
|
||||||
</StyledMemberListItem>
|
</StyledMemberListItem>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ export const StyledMemberNameContainer = styled('div')(() => {
|
|||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
width: '402px',
|
width: '402px',
|
||||||
|
flex: 2,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -27,6 +28,7 @@ export const StyledMemberRoleContainer = styled('div')(() => {
|
|||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
width: '222px',
|
width: '222px',
|
||||||
|
flex: 1,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -34,6 +36,8 @@ export const StyledMemberListContainer = styled('ul')(() => {
|
|||||||
return {
|
return {
|
||||||
marginTop: '15px',
|
marginTop: '15px',
|
||||||
overflowY: 'scroll',
|
overflowY: 'scroll',
|
||||||
|
width: '100%',
|
||||||
|
maxHeight: 'calc(100vh - 300px)',
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -42,6 +46,7 @@ export const StyledMemberListItem = styled('li')(() => {
|
|||||||
display: 'flex',
|
display: 'flex',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
height: '72px',
|
height: '72px',
|
||||||
|
width: '100%',
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -71,7 +76,9 @@ export const StyledMemberEmail = styled('div')(({ theme }) => {
|
|||||||
|
|
||||||
export const StyledMemberButtonContainer = styled('div')(() => {
|
export const StyledMemberButtonContainer = styled('div')(() => {
|
||||||
return {
|
return {
|
||||||
marginTop: '14px',
|
position: 'absolute',
|
||||||
|
bottom: '0',
|
||||||
|
marginBottom: '20px',
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -83,6 +90,7 @@ export const StyledMoreVerticalButton = styled('button')(() => {
|
|||||||
width: '24px',
|
width: '24px',
|
||||||
height: '24px',
|
height: '24px',
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
|
paddingRight: '48px',
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ export const useWorkspaceHelper = () => {
|
|||||||
content: `If enabled, the data in this workspace will be backed up and synchronized via AFFiNE Cloud.`,
|
content: `If enabled, the data in this workspace will be backed up and synchronized via AFFiNE Cloud.`,
|
||||||
confirmText: user ? 'Enable' : 'Sign in and Enable',
|
confirmText: user ? 'Enable' : 'Sign in and Enable',
|
||||||
cancelText: 'Skip',
|
cancelText: 'Skip',
|
||||||
|
confirmType: 'primary',
|
||||||
|
buttonDirection: 'column',
|
||||||
}).then(async confirm => {
|
}).then(async confirm => {
|
||||||
if (confirm && currentWorkspace) {
|
if (confirm && currentWorkspace) {
|
||||||
if (!user) {
|
if (!user) {
|
||||||
|
|||||||
Reference in New Issue
Block a user