Skip to content

Commit 2763bc6

Browse files
committed
fix: ui update
Signed-off-by: Innei <[email protected]>
1 parent 77b019f commit 2763bc6

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

src/components/layout/header/internal/HeaderWithShadow.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const HeaderWithShadow: Component = ({ children }) => {
1515
<header
1616
data-hide-print
1717
className={clsx(
18-
'fixed left-0 right-0 top-0 z-[9] ml-[calc(100vw-100%)] h-[4.5rem] overflow-hidden transition-shadow duration-200',
18+
'fixed left-0 right-0 top-0 z-[9] h-[4.5rem] overflow-hidden transition-shadow duration-200 lg:ml-[calc(100vw-100%)]',
1919
showShadow &&
2020
'shadow-none shadow-neutral-100 dark:shadow-neutral-800/50 lg:shadow-sm',
2121
)}

src/components/widgets/post/PostActionAside.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
useCurrentPostDataSelector,
2020
} from '~/providers/post/CurrentPostDataProvider'
2121
import { useModalStack } from '~/providers/root/modal-stack-provider'
22+
import { useIsEoFWrappedElement } from '~/providers/shared/WrappedElementProvider'
2223

2324
import {
2425
ActionAsideContainer,
@@ -72,7 +73,10 @@ const PostAsideCommentButton = () => {
7273
id: data?.id,
7374
}
7475
}) || {}
76+
const isEof = useIsEoFWrappedElement()
7577
if (!id) return null
78+
if (isEof) return null
79+
7680
return <AsideCommentButton refId={id} title={title!} />
7781
}
7882

src/components/widgets/post/fab/PostTagsFAB.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const PostTagsFAB = () => {
2121
onClick={() => {
2222
present({
2323
content: TagsModal,
24+
clickOutsideToDismiss: true,
2425
title: '标签云',
2526
})
2627
}}

src/components/widgets/shared/ActionAsideContainer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const ActionAsideContainer: Component = ({ className, children }) => {
2828
return (
2929
<div
3030
className={clsxm(
31-
'absolute bottom-0 left-0 -mb-4 max-h-[300px] flex-col space-y-8 p-4 transition-all duration-200 ease-in-out',
31+
'absolute bottom-0 left-0 -mb-4 max-h-[300px] flex-col space-y-6 p-4 transition-all duration-200 ease-in-out',
3232
!isEOA ? 'opacity-20 hover:opacity-100' : '',
3333
className,
3434
isEndOfPage && 'bottom-[100px]',

0 commit comments

Comments
 (0)