mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 11:42:30 +03:00
Fixed UserBox: showing avatar in attributes (#1988)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
parent
903efc5400
commit
b1506d1a65
@ -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}
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user