chore: fix vault badge styling

This commit is contained in:
Aman Harwara
2023-08-08 22:26:52 +05:30
parent 02dda6d0fe
commit 9b66c2f9f7
3 changed files with 21 additions and 9 deletions

View File

@@ -8,8 +8,17 @@ type Props = {
const VaultNameBadge: FunctionComponent<Props> = ({ vault }) => {
return (
<div title="Vault name" className="flex rounded bg-success px-1.5 py-1 text-success-contrast select-none">
<Icon ariaLabel="Shared in vault" type={vault.iconString} className="mr-1 text-info-contrast" size="medium" />
<div
title="Vault name"
className="flex items-center rounded bg-success px-1.5 py-1 text-success-contrast select-none"
>
<Icon
ariaLabel="Shared in vault"
type={vault.iconString}
className="mr-1 text-info-contrast"
size="medium"
emojiSize="small"
/>
<span className="mr-auto overflow-hidden text-ellipsis text-xs">{vault.name}</span>
</div>
)