diff --git a/addons/isl/src/Avatar.tsx b/addons/isl/src/Avatar.tsx index c666f22938365..3692652152376 100644 --- a/addons/isl/src/Avatar.tsx +++ b/addons/isl/src/Avatar.tsx @@ -10,6 +10,7 @@ import type {DetailedHTMLProps} from 'react'; import serverAPI from './ClientToServerAPI'; import {t} from './i18n'; import {atomFamilyWeak, lazyAtom} from './jotaiUtils'; +import {colors, radius} from './tokens.stylex'; import * as stylex from '@stylexjs/stylex'; import {useAtomValue} from 'jotai'; @@ -30,13 +31,15 @@ const avatarUrl = atomFamilyWeak((author: string) => { export function AvatarImg({ url, username, + xstyle, ...rest -}: {url?: string; username: string} & DetailedHTMLProps< +}: {url?: string; username: string; xstyle?: stylex.StyleXStyles} & DetailedHTMLProps< React.ImgHTMLAttributes, HTMLImageElement >) { return url == null ? null : ( ; + return
; } export function Avatar({ diff --git a/addons/isl/src/codeReview/DiffComments.tsx b/addons/isl/src/codeReview/DiffComments.tsx index 7a2489ca66ca0..b05e7bc129e64 100644 --- a/addons/isl/src/codeReview/DiffComments.tsx +++ b/addons/isl/src/codeReview/DiffComments.tsx @@ -82,9 +82,6 @@ const styles = stylex.create({ flexShrink: 0, }, avatar: { - borderRadius: radius.full, - border: '2px solid', - borderColor: colors.fg, marginBlock: spacing.half, }, byline: { @@ -101,11 +98,7 @@ function Comment({comment, isTopLevel}: {comment: DiffComment; isTopLevel?: bool return ( - + {comment.author}