diff --git a/src/back/routes/votes.ts b/src/back/routes/votes.ts index 5515b5668..64173f499 100644 --- a/src/back/routes/votes.ts +++ b/src/back/routes/votes.ts @@ -76,8 +76,11 @@ export async function getCachedVotes(req: Request) { async function getAddressVotesWithProposals(req: Request) { const address = validateAddress(req.params.address) - const first = Number(req.query.first) || undefined - const skip = Number(req.query.skip) || undefined + const numFirst = Number(req.query.first) + const numSkip = Number(req.query.skip) + + const first = Number.isInteger(numFirst) ? numFirst : undefined + const skip = Number.isInteger(numSkip) ? numSkip : undefined const votes = await SnapshotService.getAddressesVotes([address], first, skip) diff --git a/src/components/Common/BoxTabs.css b/src/components/Common/BoxTabs.css index 032be1afb..df7da1813 100644 --- a/src/components/Common/BoxTabs.css +++ b/src/components/Common/BoxTabs.css @@ -1,3 +1,7 @@ +.BoxTabs .dcl.tabs .ui.container { + width: 100%; +} + .BoxTabs .dcl.tabs { display: flex !important; padding: 0 18px; diff --git a/src/components/Home/OpenProposals.css b/src/components/Home/OpenProposals.css index f9c4920aa..af807cfd3 100644 --- a/src/components/Home/OpenProposals.css +++ b/src/components/Home/OpenProposals.css @@ -9,10 +9,6 @@ margin-bottom: 16px; } -.OpenProposals__ProposalsContainer .dcl.tabs .ui.container { - width: 100%; -} - .OpenProposals__Loader, .OpenProposals__Empty { display: flex; diff --git a/src/components/Profile/ActivityBox.tsx b/src/components/Profile/ActivityBox.tsx index 86d44b4f4..fe6df5113 100644 --- a/src/components/Profile/ActivityBox.tsx +++ b/src/components/Profile/ActivityBox.tsx @@ -36,7 +36,7 @@ const ActivityBox = ({ address }: Props) => { const { requestsStatus } = useProposalsByCoAuthor(isLoggedUserProfile ? account : null, CoauthorStatus.PENDING) return ( - + diff --git a/src/components/Profile/GrantBeneficiaryBox.tsx b/src/components/Profile/GrantBeneficiaryBox.tsx index 0627cdbcb..558d7e88d 100644 --- a/src/components/Profile/GrantBeneficiaryBox.tsx +++ b/src/components/Profile/GrantBeneficiaryBox.tsx @@ -20,7 +20,7 @@ export default function GrantBeneficiaryBox({ address }: Props) { if (!hasGrants) return null return ( - + diff --git a/src/components/Profile/VotedProposalsBox.tsx b/src/components/Profile/VotedProposalsBox.tsx index 7b8e12eb9..f33ef7598 100644 --- a/src/components/Profile/VotedProposalsBox.tsx +++ b/src/components/Profile/VotedProposalsBox.tsx @@ -25,7 +25,7 @@ function VotedProposalsBox({ address }: Props) { const { votes, isLoading, handleViewMore, hasMoreProposals } = useVotedProposals(address, PROPOSALS_PER_PAGE) return ( - + {isLoading && } {!isLoading && diff --git a/src/components/Profile/VpDelegationBox.tsx b/src/components/Profile/VpDelegationBox.tsx index 18d8a6d75..ccd48a5a9 100644 --- a/src/components/Profile/VpDelegationBox.tsx +++ b/src/components/Profile/VpDelegationBox.tsx @@ -38,7 +38,7 @@ function VpDelegationBox({ address, delegation, isLoadingDelegation, ownVp, isLo const profileHasADelegation = delegatedTo.length > 0 && !!ownVp return ( - + + +
diff --git a/src/pages/profile.css b/src/pages/profile.css index 40a7d560b..e4f399322 100644 --- a/src/pages/profile.css +++ b/src/pages/profile.css @@ -1,7 +1,11 @@ .ProfilePage__Container { display: flex; flex-direction: column; + width: 100%; + max-width: 1410px !important; + padding: 0px 1rem !important; gap: 24px; + margin: auto; } @media (min-width: 768px) { diff --git a/src/pages/profile.tsx b/src/pages/profile.tsx index 8f4fd0d94..72aaa58a1 100644 --- a/src/pages/profile.tsx +++ b/src/pages/profile.tsx @@ -67,8 +67,12 @@ export default function ProfilePage() { image="https://decentraland.org/images/decentraland.png" /> -
+