diff options
author | Eric Bailey <git@esb.lol> | 2024-05-20 21:04:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-20 21:04:27 -0500 |
commit | ad2d84fb0568f2d3d862e54b46d4eae7180994ca (patch) | |
tree | 52f92543668329b74cf13432b89df212c1ab2288 /src | |
parent | 87fa50143337f40569af9727e808d200cc64ba37 (diff) | |
download | voidsky-ad2d84fb0568f2d3d862e54b46d4eae7180994ca.tar.zst |
Fix button size on labeler (#4137)
* Fix button size * Fix mobile
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/Profile/Header/ProfileHeaderLabeler.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/screens/Profile/Header/ProfileHeaderLabeler.tsx b/src/screens/Profile/Header/ProfileHeaderLabeler.tsx index e79b345cd..64bf71027 100644 --- a/src/screens/Profile/Header/ProfileHeaderLabeler.tsx +++ b/src/screens/Profile/Header/ProfileHeaderLabeler.tsx @@ -24,7 +24,7 @@ import {isIOS} from 'platform/detection' import {useProfileShadow} from 'state/cache/profile-shadow' import {ProfileMenu} from '#/view/com/profile/ProfileMenu' import * as Toast from '#/view/com/util/Toast' -import {atoms as a, tokens, useTheme} from '#/alf' +import {atoms as a, tokens, useBreakpoints, useTheme} from '#/alf' import {Button, ButtonText} from '#/components/Button' import {DialogOuterProps} from '#/components/Dialog' import { @@ -60,6 +60,7 @@ let ProfileHeaderLabeler = ({ const profile: Shadow<AppBskyActorDefs.ProfileViewDetailed> = useProfileShadow(profileUnshadowed) const t = useTheme() + const {gtMobile} = useBreakpoints() const {_} = useLingui() const {currentAccount, hasSession} = useSession() const {openModal} = useModalControls() @@ -197,6 +198,7 @@ let ProfileHeaderLabeler = ({ <View style={[ { + paddingVertical: gtMobile ? 12 : 10, backgroundColor: isSubscribed || !canSubscribe ? state.hovered || state.pressed @@ -206,8 +208,7 @@ let ProfileHeaderLabeler = ({ ? tokens.color.temp_purple_dark : tokens.color.temp_purple, }, - a.py_sm, - a.px_md, + a.px_lg, a.rounded_sm, a.gap_sm, ]}> |