diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-05-31 14:55:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 12:55:51 +0100 |
commit | 05b55c1966b12f4849235dc794455bc60c5753c1 (patch) | |
tree | e156e1347aad58693f9c245002f21300e033817a /src/view/com/composer/threadgate/ThreadgateBtn.tsx | |
parent | d614f6cb71bf2751834dbd800b5f43257d5c074a (diff) | |
download | voidsky-05b55c1966b12f4849235dc794455bc60c5753c1.tar.zst |
Composer - fix modals, and other tweaks (#4298)
* fix depreciated import * add animations to old dropdown * wrap modals in fullwindowoverlay * move errors inside header * add background to bottom bar and stop overlap * nest dialogs on android * fix android (wrap in gesturehandlerrootview) * make borders all the same color * revert threadgate button back to solid
Diffstat (limited to 'src/view/com/composer/threadgate/ThreadgateBtn.tsx')
-rw-r--r-- | src/view/com/composer/threadgate/ThreadgateBtn.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/com/composer/threadgate/ThreadgateBtn.tsx b/src/view/com/composer/threadgate/ThreadgateBtn.tsx index df2a31e2b..afc9f5bfa 100644 --- a/src/view/com/composer/threadgate/ThreadgateBtn.tsx +++ b/src/view/com/composer/threadgate/ThreadgateBtn.tsx @@ -7,7 +7,7 @@ import {isNative} from '#/platform/detection' import {useModalControls} from '#/state/modals' import {ThreadgateSetting} from '#/state/queries/threadgate' import {useAnalytics} from 'lib/analytics/analytics' -import {atoms as a} from '#/alf' +import {atoms as a, useTheme} from '#/alf' import {Button, ButtonIcon, ButtonText} from '#/components/Button' import {CircleBanSign_Stroke2_Corner0_Rounded as CircleBanSign} from '#/components/icons/CircleBanSign' import {Earth_Stroke2_Corner0_Rounded as Earth} from '#/components/icons/Globe' @@ -22,6 +22,7 @@ export function ThreadgateBtn({ }) { const {track} = useAnalytics() const {_} = useLingui() + const t = useTheme() const {openModal} = useModalControls() const onPress = () => { @@ -45,7 +46,7 @@ export function ThreadgateBtn({ : _(msg`Some people can reply`) return ( - <View style={[a.flex_row, a.pb_sm, a.px_md]}> + <View style={[a.flex_row, a.py_xs, a.px_sm, t.atoms.bg]}> <Button variant="solid" color="secondary" |