mirror of https://github.com/fantasticit/think.git
client: fix dom structure with a
This commit is contained in:
parent
ee690bf5d3
commit
7e7ff516cd
|
@ -119,32 +119,34 @@ export const OrganizationSwitcher = () => {
|
||||||
error={error}
|
error={error}
|
||||||
normalContent={() => {
|
normalContent={() => {
|
||||||
return (
|
return (
|
||||||
<Link
|
<>
|
||||||
href={{
|
<Link
|
||||||
pathname: '/app/org/[organizationId]',
|
href={{
|
||||||
query: {
|
pathname: '/app/org/[organizationId]',
|
||||||
organizationId: data.id,
|
query: {
|
||||||
},
|
organizationId: data.id,
|
||||||
}}
|
},
|
||||||
>
|
}}
|
||||||
<a className={styles.nameWrap}>
|
>
|
||||||
<span style={{ display: 'flex', alignItems: 'center' }}>
|
<a className={styles.nameWrap}>
|
||||||
<Avatar size="small" src={data.logo} style={{ marginRight: 8 }} />
|
<span style={{ display: 'flex', alignItems: 'center' }}>
|
||||||
<Paragraph
|
<Avatar size="small" src={data.logo} style={{ marginRight: 8 }} />
|
||||||
style={{
|
<Paragraph
|
||||||
maxWidth: 100,
|
style={{
|
||||||
whiteSpace: 'nowrap',
|
maxWidth: 100,
|
||||||
textOverflow: 'ellipsis',
|
whiteSpace: 'nowrap',
|
||||||
overflow: 'hidden',
|
textOverflow: 'ellipsis',
|
||||||
}}
|
overflow: 'hidden',
|
||||||
strong
|
}}
|
||||||
>
|
strong
|
||||||
{data.name}
|
>
|
||||||
</Paragraph>
|
{data.name}
|
||||||
</span>
|
</Paragraph>
|
||||||
<UserOrganizationsSwitcher />
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
|
<UserOrganizationsSwitcher />
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue