Skip to content

Commit

Permalink
fix: optimize print
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Nov 6, 2023
1 parent daa7682 commit c907401
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/ui/fab/FABContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export const FABContainer = (props: {
<div
ref={fabContainerRef}
data-testid="fab-container"
data-hide-print
className={clsx(
'font-lg fixed bottom-[calc(2rem+env(safe-area-inset-bottom))] left-[calc(100vw-3rem-1rem)] z-[9] flex flex-col',
shouldHide ? 'translate-x-[calc(100%+2rem)]' : '',
Expand Down
3 changes: 1 addition & 2 deletions src/components/widgets/xlog/XLogSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export const XLogSummary: FC<XLogSummaryProps> = (props) => {

let Inner: ReactNode = (
<div
data-hide-print
className={clsxm(
`space-y-2 rounded-xl border border-slate-200 p-4 dark:border-neutral-800`,
props.className,
Expand Down Expand Up @@ -74,7 +73,7 @@ export const XLogSummary: FC<XLogSummaryProps> = (props) => {
}

return (
<AutoResizeHeight duration={0.2} className="mt-4">
<AutoResizeHeight duration={0.2} className="mt-4 print:hidden">
{Inner}
</AutoResizeHeight>
)
Expand Down

1 comment on commit c907401

@vercel
Copy link

@vercel vercel bot commented on c907401 Nov 6, 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 – ./

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

Please sign in to comment.