Fix to post meta overflow in highlighted post (#1211)

* Fix to post meta overflow in highlighted post

* Give more space to desktop web
zio/stable
Paul Frazee 2023-08-17 18:59:25 -07:00 committed by GitHub
parent ee9cf7402f
commit 2198aab8b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

View File

@ -33,6 +33,7 @@ import {usePalette} from 'lib/hooks/usePalette'
import {formatCount} from '../util/numeric/format'
import {TimeElapsed} from 'view/com/util/TimeElapsed'
import {makeProfileLink} from 'lib/routes/links'
import {isDesktopWeb} from 'platform/detection'
export const PostThreadItem = observer(function PostThreadItem({
item,
@ -226,7 +227,6 @@ export const PostThreadItem = observer(function PostThreadItem({
</Link>
</View>
</View>
<View style={s.flex1} />
<PostDropdownBtn
testID="postDropdownBtn"
itemUri={itemUri}
@ -239,7 +239,12 @@ export const PostThreadItem = observer(function PostThreadItem({
onOpenTranslate={onOpenTranslate}
onToggleThreadMute={onToggleThreadMute}
onDeletePost={onDeletePost}
style={{paddingVertical: 6, paddingHorizontal: 10}}
style={{
paddingVertical: 6,
paddingHorizontal: 10,
marginLeft: 'auto',
width: 40,
}}
/>
</View>
<View style={[s.pl10, s.pr10, s.pb10]}>
@ -556,7 +561,7 @@ const styles = StyleSheet.create({
},
metaItem: {
paddingRight: 5,
maxWidth: 240,
maxWidth: isDesktopWeb ? 380 : 220,
},
alert: {
marginBottom: 6,