Skip to content

Commit

Permalink
fix: ui update
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Nov 14, 2023
1 parent 77b019f commit 2763bc6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/layout/header/internal/HeaderWithShadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const HeaderWithShadow: Component = ({ children }) => {
<header
data-hide-print
className={clsx(
'fixed left-0 right-0 top-0 z-[9] ml-[calc(100vw-100%)] h-[4.5rem] overflow-hidden transition-shadow duration-200',
'fixed left-0 right-0 top-0 z-[9] h-[4.5rem] overflow-hidden transition-shadow duration-200 lg:ml-[calc(100vw-100%)]',
showShadow &&
'shadow-none shadow-neutral-100 dark:shadow-neutral-800/50 lg:shadow-sm',
)}
Expand Down
4 changes: 4 additions & 0 deletions src/components/widgets/post/PostActionAside.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
useCurrentPostDataSelector,
} from '~/providers/post/CurrentPostDataProvider'
import { useModalStack } from '~/providers/root/modal-stack-provider'
import { useIsEoFWrappedElement } from '~/providers/shared/WrappedElementProvider'

import {
ActionAsideContainer,
Expand Down Expand Up @@ -72,7 +73,10 @@ const PostAsideCommentButton = () => {
id: data?.id,
}
}) || {}
const isEof = useIsEoFWrappedElement()
if (!id) return null
if (isEof) return null

return <AsideCommentButton refId={id} title={title!} />
}

Expand Down
1 change: 1 addition & 0 deletions src/components/widgets/post/fab/PostTagsFAB.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const PostTagsFAB = () => {
onClick={() => {
present({
content: TagsModal,
clickOutsideToDismiss: true,
title: '标签云',
})
}}
Expand Down
2 changes: 1 addition & 1 deletion src/components/widgets/shared/ActionAsideContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const ActionAsideContainer: Component = ({ className, children }) => {
return (
<div
className={clsxm(
'absolute bottom-0 left-0 -mb-4 max-h-[300px] flex-col space-y-8 p-4 transition-all duration-200 ease-in-out',
'absolute bottom-0 left-0 -mb-4 max-h-[300px] flex-col space-y-6 p-4 transition-all duration-200 ease-in-out',
!isEOA ? 'opacity-20 hover:opacity-100' : '',
className,
isEndOfPage && 'bottom-[100px]',
Expand Down

0 comments on commit 2763bc6

Please sign in to comment.