Move bookmark button back to the left position

This commit is contained in:
Bruno Lemos
2019-04-06 03:09:05 -03:00
parent 7b8a0562ad
commit 1ef881c690
2 changed files with 22 additions and 22 deletions

View File

@@ -513,8 +513,6 @@ export const EventCard = React.memo((props: EventCardProps) => {
{/* <CenterGuide /> */}
<Spacer width={contentPadding / 3} />
{/* <View
style={[cardStyles.compactItemFixedWidth, cardStyles.compactItemFixedHeight]}
>
@@ -523,6 +521,16 @@ export const EventCard = React.memo((props: EventCardProps) => {
<Spacer width={contentPadding} /> */}
<View style={cardStyles.compactItemFixedHeight}>
<BookmarkButton
isSaved={isSaved}
itemIds={[id]}
size={smallAvatarSize}
/>
</View>
<Spacer width={(contentPadding * 2) / 3} />
{!repoIsKnown && (
<>
<View
@@ -636,7 +644,7 @@ export const EventCard = React.memo((props: EventCardProps) => {
)}
</View>
<Spacer width={contentPadding} />
<Spacer width={contentPadding / 2} />
<View style={cardStyles.compactItemFixedHeight}>
<ToggleReadButton
@@ -646,14 +654,6 @@ export const EventCard = React.memo((props: EventCardProps) => {
type="activity"
/>
</View>
<View style={cardStyles.compactItemFixedHeight}>
<BookmarkButton
isSaved={isSaved}
itemIds={[id]}
size={smallAvatarSize}
/>
</View>
</SpringAnimatedView>
)
}

View File

@@ -435,8 +435,6 @@ export const NotificationCard = React.memo((props: NotificationCardProps) => {
{/* <CenterGuide /> */}
<Spacer width={contentPadding / 3} />
{/* <View
style={[cardStyles.compactItemFixedWidth, cardStyles.compactItemFixedHeight]}
>
@@ -445,6 +443,16 @@ export const NotificationCard = React.memo((props: NotificationCardProps) => {
<Spacer width={contentPadding} /> */}
<View style={cardStyles.compactItemFixedHeight}>
<BookmarkButton
isSaved={isSaved}
itemIds={[id]}
size={smallAvatarSize}
/>
</View>
<Spacer width={(contentPadding * 2) / 3} />
{!repoIsKnown && (
<>
<View style={cardStyles.compactItemFixedHeight}>
@@ -549,7 +557,7 @@ export const NotificationCard = React.memo((props: NotificationCardProps) => {
/>
</View>
<Spacer width={contentPadding} />
<Spacer width={contentPadding / 2} />
<View style={cardStyles.compactItemFixedHeight}>
<ToggleReadButton
@@ -559,14 +567,6 @@ export const NotificationCard = React.memo((props: NotificationCardProps) => {
type="notifications"
/>
</View>
<View style={cardStyles.compactItemFixedHeight}>
<BookmarkButton
isSaved={isSaved}
itemIds={[id]}
size={smallAvatarSize}
/>
</View>
</SpringAnimatedView>
)
}