Tighten up spacing and dividers

zio/stable
Paul Frazee 2022-12-28 15:50:28 -06:00
parent 84e74d5ee4
commit 23e7ae49d4
4 changed files with 15 additions and 25 deletions

View File

@ -46,14 +46,13 @@ export function ComposePrompt({
const styles = StyleSheet.create({ const styles = StyleSheet.create({
container: { container: {
borderRadius: 6,
margin: 2,
marginBottom: 0,
paddingHorizontal: 10, paddingHorizontal: 10,
paddingVertical: 10, paddingVertical: 10,
flexDirection: 'row', flexDirection: 'row',
alignItems: 'center', alignItems: 'center',
backgroundColor: colors.white, backgroundColor: colors.white,
borderTopWidth: 1,
borderTopColor: colors.gray2,
}, },
noAviContainer: { noAviContainer: {
paddingVertical: 14, paddingVertical: 14,

View File

@ -319,9 +319,8 @@ export const PostThreadItem = observer(function PostThreadItem({
const styles = StyleSheet.create({ const styles = StyleSheet.create({
outer: { outer: {
backgroundColor: colors.white, backgroundColor: colors.white,
borderRadius: 6, borderTopWidth: 1,
margin: 2, borderTopColor: colors.gray2,
marginBottom: 0,
}, },
parentReplyLine: { parentReplyLine: {
position: 'absolute', position: 'absolute',

View File

@ -103,9 +103,7 @@ export const FeedItem = observer(function ({
return ( return (
<> <>
{isChild && !item._isThreadChild && item.replyParent ? ( {isChild && !item._isThreadChild && item.replyParent ? (
<View style={{marginTop: 2}}> <FeedItem item={item.replyParent} showReplyLine />
<FeedItem item={item.replyParent} showReplyLine />
</View>
) : undefined} ) : undefined}
<Link style={outerStyles} href={itemHref} title={itemTitle} noFeedback> <Link style={outerStyles} href={itemHref} title={itemTitle} noFeedback>
{item._isThreadChild && <View style={[styles.topReplyLine]} />} {item._isThreadChild && <View style={[styles.topReplyLine]} />}
@ -240,29 +238,23 @@ export const FeedItem = observer(function ({
const styles = StyleSheet.create({ const styles = StyleSheet.create({
outer: { outer: {
borderRadius: 6, borderTopWidth: 1,
margin: 2, borderTopColor: colors.gray2,
marginBottom: 0,
backgroundColor: colors.white, backgroundColor: colors.white,
padding: 10, padding: 10,
}, },
outerNoTop: { outerNoTop: {
marginTop: 0, borderTopWidth: 0,
paddingTop: 0, paddingTop: 0,
borderTopLeftRadius: 0, borderTopLeftRadius: 0,
borderTopRightRadius: 0, borderTopRightRadius: 0,
}, },
outerSmallTop: { outerSmallTop: {
marginTop: 0, borderTopWidth: 0,
paddingTop: 8, paddingTop: 8,
borderTopLeftRadius: 0,
borderTopRightRadius: 0,
}, },
outerNoBottom: { outerNoBottom: {
marginBottom: 0, paddingBottom: 2,
paddingBottom: 0,
borderBottomLeftRadius: 0,
borderBottomRightRadius: 0,
}, },
topReplyLine: { topReplyLine: {
position: 'absolute', position: 'absolute',
@ -293,7 +285,7 @@ const styles = StyleSheet.create({
}, },
layoutAvi: { layoutAvi: {
width: 60, width: 60,
paddingTop: 5, paddingTop: 0,
}, },
layoutContent: { layoutContent: {
flex: 1, flex: 1,
@ -316,12 +308,12 @@ const styles = StyleSheet.create({
viewFullThread: { viewFullThread: {
backgroundColor: colors.white, backgroundColor: colors.white,
paddingTop: 12, paddingTop: 12,
paddingBottom: 4, paddingBottom: 2,
paddingLeft: 72, paddingLeft: 70,
}, },
viewFullThreadDots: { viewFullThreadDots: {
position: 'absolute', position: 'absolute',
left: 35, left: 33,
top: 0, top: 0,
}, },
viewFullThreadText: { viewFullThreadText: {

View File

@ -74,7 +74,7 @@ const styles = StyleSheet.create({
meta: { meta: {
flexDirection: 'row', flexDirection: 'row',
alignItems: 'center', alignItems: 'center',
paddingTop: 2, paddingTop: 0,
paddingBottom: 2, paddingBottom: 2,
}, },
metaItem: { metaItem: {