fix: add small avatar when select is not showing
This commit is contained in:
parent
5f92906032
commit
d8d51be603
@ -21,6 +21,7 @@ import { FONT_SIZE, FONT_TYPE, inPx } from '../../utils/pdf'
|
|||||||
import { useScale } from '../../hooks/useScale'
|
import { useScale } from '../../hooks/useScale'
|
||||||
import { AvatarIconButton } from '../UserAvatarIconButton'
|
import { AvatarIconButton } from '../UserAvatarIconButton'
|
||||||
import { LoadingSpinner } from '../LoadingSpinner'
|
import { LoadingSpinner } from '../LoadingSpinner'
|
||||||
|
import { UserAvatar } from '../UserAvatar'
|
||||||
|
|
||||||
const DEFAULT_START_SIZE = {
|
const DEFAULT_START_SIZE = {
|
||||||
width: 140,
|
width: 140,
|
||||||
@ -493,6 +494,18 @@ export const DrawPDFFields = (props: Props) => {
|
|||||||
>
|
>
|
||||||
<Close fontSize="small" />
|
<Close fontSize="small" />
|
||||||
</span>
|
</span>
|
||||||
|
{!isActiveDrawnField(
|
||||||
|
fileIndex,
|
||||||
|
pageIndex,
|
||||||
|
drawnFieldIndex
|
||||||
|
) &&
|
||||||
|
!!drawnField.counterpart && (
|
||||||
|
<div className={styles.counterpartAvatar}>
|
||||||
|
<UserAvatar
|
||||||
|
pubkey={npubToHex(drawnField.counterpart)!}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
{isActiveDrawnField(
|
{isActiveDrawnField(
|
||||||
fileIndex,
|
fileIndex,
|
||||||
pageIndex,
|
pageIndex,
|
||||||
|
@ -84,3 +84,14 @@
|
|||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.counterpartSelectValue {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.counterpartAvatar {
|
||||||
|
img {
|
||||||
|
width: 21px;
|
||||||
|
height: 21px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user