Skip to content

Commit

Permalink
fix: entry read history more not showing on desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban committed Sep 15, 2024
1 parent cc25c67 commit 0c6494b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const EntryReadHistory: Component<{ entryId: string }> = ({ entryId }) =>
right: "80px",
zIndex: 11,
}}
className="relative flex size-7 items-center justify-center rounded-full border border-border bg-muted ring ring-background"
className="no-drag-region relative flex size-7 items-center justify-center rounded-full border border-border bg-muted ring ring-background"
>
<span className="text-[10px] font-medium text-muted-foreground">
+{Math.min(entryHistory.readCount - 10, 99)}
Expand All @@ -94,7 +94,7 @@ export const EntryReadHistory: Component<{ entryId: string }> = ({ entryId }) =>
.filter((id) => id !== me?.id)
.slice(10)
.map((userId) => (
<EntryRow userId={userId} key={userId} />
<EntryUserRow userId={userId} key={userId} />
))}
</ul>
</HoverCardContent>
Expand All @@ -105,7 +105,7 @@ export const EntryReadHistory: Component<{ entryId: string }> = ({ entryId }) =>
)
}

const EntryRow: Component<{ userId: string }> = memo(({ userId }) => {
const EntryUserRow: Component<{ userId: string }> = memo(({ userId }) => {
const user = useUserById(userId)
const presentUserProfile = usePresentUserProfileModal("drawer")
if (!user) return null
Expand Down

0 comments on commit 0c6494b

Please sign in to comment.