mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
feat(core): adjust history modal styles (#11675)
- add avatar/name info to each history snapshot item - add avatar to audio transcription job owner fix AF-2483 
This commit is contained in:
@@ -2,6 +2,8 @@ import { style } from '@vanilla-extract/css';
|
||||
|
||||
export const publicUserLabel = style({
|
||||
fontSize: 'inherit',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
});
|
||||
|
||||
export const publicUserLabelLoading = style([
|
||||
@@ -18,3 +20,7 @@ export const publicUserLabelRemoved = style([
|
||||
textDecoration: 'line-through',
|
||||
},
|
||||
]);
|
||||
|
||||
export const publicUserLabelAvatar = style({
|
||||
marginRight: '0.5em',
|
||||
});
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { Avatar } from '@affine/component';
|
||||
import { useCurrentServerService } from '@affine/core/components/providers/current-server-scope';
|
||||
import { useI18n } from '@affine/i18n';
|
||||
import { useLiveData } from '@toeverything/infra';
|
||||
@@ -34,5 +35,15 @@ export const PublicUserLabel = ({ id }: { id: string }) => {
|
||||
);
|
||||
}
|
||||
|
||||
return <span className={styles.publicUserLabel}>{user?.name}</span>;
|
||||
return (
|
||||
<span className={styles.publicUserLabel}>
|
||||
<Avatar
|
||||
url={user?.avatar}
|
||||
name={user?.name ?? ''}
|
||||
size={20}
|
||||
className={styles.publicUserLabelAvatar}
|
||||
/>
|
||||
{user?.name}
|
||||
</span>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user