chore: improve note view vault info style (#2488)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { TrustedContactInterface } from '@standardnotes/models'
|
||||
import Icon from '../Icon/Icon'
|
||||
|
||||
const LastEditedByBadge = ({ contact }: { contact: TrustedContactInterface }) => {
|
||||
return (
|
||||
<div
|
||||
title="Last edited by"
|
||||
className="flex select-none items-center rounded bg-info px-1.5 py-1 text-info-contrast"
|
||||
>
|
||||
<Icon ariaLabel="Shared by" type="pencil" className="mr-1 text-info-contrast" size="medium" />
|
||||
<span className="mr-auto overflow-hidden text-ellipsis text-sm font-semibold lg:text-xs">{contact.name}</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default LastEditedByBadge
|
||||
@@ -0,0 +1,13 @@
|
||||
import { TrustedContactInterface } from '@standardnotes/models'
|
||||
import Icon from '../Icon/Icon'
|
||||
|
||||
const SharedByContactBadge = ({ contact }: { contact: TrustedContactInterface }) => {
|
||||
return (
|
||||
<div title="Shared by contact" className="flex items-center rounded bg-info px-1.5 py-1 text-neutral-contrast">
|
||||
<Icon ariaLabel="Shared by contact" type="archive" className="mr-1 text-info-contrast" size="medium" />
|
||||
<div className="text-center text-sm font-semibold lg:text-xs">{contact.name}</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default SharedByContactBadge
|
||||
@@ -10,7 +10,7 @@ const VaultNameBadge: FunctionComponent<Props> = ({ vault }) => {
|
||||
return (
|
||||
<div
|
||||
title="Vault name"
|
||||
className="flex items-center rounded bg-success px-1.5 py-1 text-success-contrast select-none"
|
||||
className="flex select-none items-center rounded bg-success px-1.5 py-1 text-success-contrast"
|
||||
>
|
||||
<Icon
|
||||
ariaLabel="Shared in vault"
|
||||
@@ -19,7 +19,7 @@ const VaultNameBadge: FunctionComponent<Props> = ({ vault }) => {
|
||||
size="medium"
|
||||
emojiSize="small"
|
||||
/>
|
||||
<span className="mr-auto overflow-hidden text-ellipsis text-xs">{vault.name}</span>
|
||||
<span className="mr-auto overflow-hidden text-ellipsis text-sm font-semibold lg:text-xs">{vault.name}</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user