fix: win UI - feed claim modal ui & header readHistory ui (#1019)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user