Skip to content

Commit

Permalink
fix: hide header cover in print
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Dec 27, 2023
1 parent d018f74 commit d9d7315
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/widgets/note/NoteHeadCover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const NoteHeadCover = ({ image }: { image: string }) => {
<>
<AutoResizeHeight>
<div
data-hide-print
className={clsx(
'z-1 absolute left-0 right-0 top-0',
imageBlob ? 'h-[224px]' : '0',
Expand All @@ -88,7 +89,7 @@ export const NoteHeadCover = ({ image }: { image: string }) => {
</AutoResizeHeight>

<AutoResizeHeight>
<div className={imageBlob ? 'h-[120px]' : 'h-0'} />
<div data-hide-print className={imageBlob ? 'h-[120px]' : 'h-0'} />
</AutoResizeHeight>
</>
)
Expand Down

1 comment on commit d9d7315

@vercel
Copy link

@vercel vercel bot commented on d9d7315 Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

springtide.vercel.app
shiro-git-main-innei.vercel.app
innei.in
shiro-innei.vercel.app

Please sign in to comment.