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

View File

@ -1,11 +1,11 @@
// 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.
{
"tsdocVersion": "0.12",
"toolPackages": [
{
"packageName": "@microsoft/api-extractor",
"packageVersion": "7.23.0"
}
]
}
// 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.
{
"tsdocVersion": "0.12",
"toolPackages": [
{
"packageName": "@microsoft/api-extractor",
"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.
// It should be published with your NPM package. It should not be tracked by Git.
{
"tsdocVersion": "0.12",
"toolPackages": [
{
"packageName": "@microsoft/api-extractor",
"packageVersion": "7.23.0"
}
]
}
// 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.
{
"tsdocVersion": "0.12",
"toolPackages": [
{
"packageName": "@microsoft/api-extractor",
"packageVersion": "7.23.0"
}
]
}