mirror of
https://github.com/zhigang1992/devhub.git
synced 2026-05-26 15:44:06 +08:00
Move bookmark button back to the left position
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user