fix: win UI - feed claim modal ui & header readHistory ui (#1019)

This commit is contained in:
cos
2024-10-19 09:04:42 +08:00
committed by GitHub
parent a0293f4a66
commit 77edf34db7
2 changed files with 9 additions and 5 deletions
-1
View File
@@ -20,7 +20,6 @@ export const useFeedClaimModal = ({ feedId }: { feedId?: string }) => {
present({
title: t("feed_claim_modal.title"),
content: () => createElement(FeedClaimModalContent, { feedId }),
modalClassName: "!h-auto !max-h-screen",
})
}, [feedId, present])
}
@@ -28,10 +28,15 @@ import { usePresentUserProfileModal } from "../../profile/hooks"
const getLimit = (width: number): number => {
const routeParams = getRouteParams()
// social media view has four extra buttons
if (routeParams.view === FeedViewType.SocialMedia) {
if (width > 1050) return 15
if (width > 750) return 10
return 5
if (
[FeedViewType.SocialMedia, FeedViewType.Pictures, FeedViewType.Videos].includes(
routeParams.view,
)
) {
if (width > 1100) return 15
if (width > 950) return 10
if (width > 800) return 5
return 3
}
if (width > 900) return 15
if (width > 600) return 10