Skip to content

Commit

Permalink
fix: read history style in wide mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Aug 1, 2024
1 parent 7b72ef2 commit 07ca5ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderer/src/modules/entry-content/header.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Slot } from "@radix-ui/react-slot"
import { ActionButton } from "@renderer/components/ui/button"
import { views } from "@renderer/constants"
import { useEntryActions } from "@renderer/hooks/biz/useEntryActions"
import { cn } from "@renderer/lib/utils"
import { useEntry } from "@renderer/store/entry/hooks"
Expand Down Expand Up @@ -41,6 +42,7 @@ export function EntryHeader({
className={cn(
"invisible absolute left-5 top-0 z-0 flex h-full items-center gap-2 text-[13px] leading-none text-zinc-500",
isAtTop && "visible z-[11]",
views[view].wideMode && "static",
)}
>
<EntryReadHistory entryId={entryId} />
Expand Down

0 comments on commit 07ca5ea

Please sign in to comment.