fix tablet
This commit is contained in:
@@ -106,9 +106,7 @@ function ProfileCard() {
|
||||
<Menu.Root>
|
||||
<Menu.Trigger label={_(msg`Switch accounts`)}>
|
||||
{({props, state}) => {
|
||||
const active =
|
||||
gtTablet && // desktop only
|
||||
state.activated
|
||||
const active = state.activated
|
||||
return (
|
||||
<Button
|
||||
label={props.accessibilityLabel}
|
||||
@@ -133,7 +131,10 @@ function ProfileCard() {
|
||||
a.relative,
|
||||
a.z_10,
|
||||
active && {
|
||||
transform: [{scale: 2 / 3}, {translateX: -22}],
|
||||
transform: [
|
||||
{scale: gtTablet ? 2 / 3 : 0.8},
|
||||
{translateX: gtTablet ? -22 : 0},
|
||||
],
|
||||
},
|
||||
]}>
|
||||
<UserAvatar
|
||||
@@ -142,6 +143,8 @@ function ProfileCard() {
|
||||
type={profile?.associated?.labeler ? 'labeler' : 'user'}
|
||||
/>
|
||||
</View>
|
||||
{gtTablet && (
|
||||
<>
|
||||
<View
|
||||
style={[
|
||||
a.flex_1,
|
||||
@@ -168,7 +171,6 @@ function ProfileCard() {
|
||||
{sanitizeHandle(profile.handle, '@')}
|
||||
</Text>
|
||||
</View>
|
||||
{gtTablet && (
|
||||
<EllipsisIcon
|
||||
aria-hidden={true}
|
||||
style={[
|
||||
@@ -178,6 +180,7 @@ function ProfileCard() {
|
||||
]}
|
||||
size="sm"
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
</Button>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user