Limit spacing on desktop
This commit is contained in:
@@ -26,7 +26,7 @@ import {
|
|||||||
} from '#/state/shell/progress-guide'
|
} from '#/state/shell/progress-guide'
|
||||||
import {formatCount} from '#/view/com/util/numeric/format'
|
import {formatCount} from '#/view/com/util/numeric/format'
|
||||||
import * as Toast from '#/view/com/util/Toast'
|
import * as Toast from '#/view/com/util/Toast'
|
||||||
import {atoms as a} from '#/alf'
|
import {atoms as a, useBreakpoints} from '#/alf'
|
||||||
import {Reply as Bubble} from '#/components/icons/Reply'
|
import {Reply as Bubble} from '#/components/icons/Reply'
|
||||||
import {BookmarkButton} from './BookmarkButton'
|
import {BookmarkButton} from './BookmarkButton'
|
||||||
import {
|
import {
|
||||||
@@ -92,6 +92,7 @@ let PostControls = ({
|
|||||||
post.author.viewer?.blockingByList,
|
post.author.viewer?.blockingByList,
|
||||||
)
|
)
|
||||||
const replyDisabled = post.viewer?.replyDisabled
|
const replyDisabled = post.viewer?.replyDisabled
|
||||||
|
const {gtPhone} = useBreakpoints()
|
||||||
|
|
||||||
const [hasLikeIconBeenToggled, setHasLikeIconBeenToggled] = useState(false)
|
const [hasLikeIconBeenToggled, setHasLikeIconBeenToggled] = useState(false)
|
||||||
|
|
||||||
@@ -194,7 +195,7 @@ let PostControls = ({
|
|||||||
a.gap_md,
|
a.gap_md,
|
||||||
style,
|
style,
|
||||||
]}>
|
]}>
|
||||||
<View style={[a.flex_row, a.flex_1]}>
|
<View style={[a.flex_row, a.flex_1, {maxWidth: 320}]}>
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
a.flex_1,
|
a.flex_1,
|
||||||
@@ -282,7 +283,7 @@ let PostControls = ({
|
|||||||
{/* Spacer! */}
|
{/* Spacer! */}
|
||||||
<View />
|
<View />
|
||||||
</View>
|
</View>
|
||||||
<View style={[a.flex_row, a.justify_end, big && a.gap_sm]}>
|
<View style={[a.flex_row, a.justify_end, (big || gtPhone) && a.gap_sm]}>
|
||||||
<BookmarkButton post={post} big={big} />
|
<BookmarkButton post={post} big={big} />
|
||||||
<ShareMenuButton
|
<ShareMenuButton
|
||||||
testID="postShareBtn"
|
testID="postShareBtn"
|
||||||
|
|||||||
Reference in New Issue
Block a user