Fixed UserBox: showing avatar in attributes (#1988)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov 2022-06-02 19:54:56 +03:00 committed by GitHub
parent 903efc5400
commit b1506d1a65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 26 deletions

View File

@ -126,7 +126,7 @@
<span slot="content" style="overflow: hidden"> <span slot="content" style="overflow: hidden">
{#if selected} {#if selected}
{#if size === 'x-large'} {#if size === 'x-large'}
<UserInfo value={selected} size={'medium'} /> <UserInfo value={selected} size={'medium'} {icon} />
{:else} {:else}
{getName(selected)} {getName(selected)}
{/if} {/if}
@ -139,7 +139,7 @@
{:else} {:else}
<Button <Button
{focusIndex} {focusIndex}
icon={size === 'x-large' && selected ? undefined : IconPerson} icon={(size === 'x-large' || size === 'large') && selected ? undefined : icon}
width={width ?? 'min-content'} width={width ?? 'min-content'}
{size} {size}
{kind} {kind}
@ -148,8 +148,8 @@
> >
<span slot="content" style="overflow: hidden"> <span slot="content" style="overflow: hidden">
{#if selected} {#if selected}
{#if size === 'x-large'} {#if size === 'x-large' || size === 'large'}
<UserInfo value={selected} size={'medium'} {icon} /> <UserInfo value={selected} size={'x-small'} {icon} />
{:else} {:else}
{getName(selected)} {getName(selected)}
{/if} {/if}

View File

@ -1,11 +1,11 @@
// This file is read by tools that parse documentation comments conforming to the TSDoc standard. // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
// It should be published with your NPM package. It should not be tracked by Git. // It should be published with your NPM package. It should not be tracked by Git.
{ {
"tsdocVersion": "0.12", "tsdocVersion": "0.12",
"toolPackages": [ "toolPackages": [
{ {
"packageName": "@microsoft/api-extractor", "packageName": "@microsoft/api-extractor",
"packageVersion": "7.23.0" "packageVersion": "7.23.0"
} }
] ]
} }

View File

@ -1,11 +1,11 @@
// This file is read by tools that parse documentation comments conforming to the TSDoc standard. // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
// It should be published with your NPM package. It should not be tracked by Git. // It should be published with your NPM package. It should not be tracked by Git.
{ {
"tsdocVersion": "0.12", "tsdocVersion": "0.12",
"toolPackages": [ "toolPackages": [
{ {
"packageName": "@microsoft/api-extractor", "packageName": "@microsoft/api-extractor",
"packageVersion": "7.23.0" "packageVersion": "7.23.0"
} }
] ]
} }