Skip to content

Commit

Permalink
fix: strapi graphql max items
Browse files Browse the repository at this point in the history
  • Loading branch information
gmat224 committed Dec 25, 2024
1 parent be6bd6e commit d1b1d36
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion strapi/config/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = ({ env }) => ({
shadowCRUD: true,
playgroundAlways: false,
depthLimit: 7,
amountLimit: 100,
amountLimit: 150,
apolloServer: {
tracing: false,
},
Expand Down
12 changes: 6 additions & 6 deletions web/src/components/exec-page/PreviousTeamCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ export default function PreviousTeamCard({
return (
<div
key={year}
className="from-AUIS-dark-teal to-AUIS-teal relative my-3 h-auto w-auto rounded-3xl bg-gradient-to-b px-3 py-2 md:px-20"
className="from-AUIS-dark-teal to-AUIS-teal relative my-3 h-auto w-auto rounded-3xl bg-gradient-to-b px-3 py-2 md:px-20"
>
<h2 className="text-tertiary-blue absolute left-5 top-2 mb-3 text-4xl font-bold md:left-10 md:top-5 md:text-5xl">
{year}
<h2 className="text-white text-center mb-3 text-3xl drop-shadow-glow font-bold md:left-10 md:top-5 md:text-5xl">
{year==="2024"? ("🥰") : ("")} {year} {year==="2024"? ("🥰") : ("")}
</h2>
{teams.presidents.length > 0 && (
<div className="flex flex-col items-center">
<h3 className="text-tertiary-blue text-2xl font-bold">Presidents</h3>
<h3 className="text-tertiary-blue text-2xl font-bold">President</h3>
<div className="mb-5 flex flex-wrap justify-center px-5">
{teams.presidents.map((team) => (
<p
Expand All @@ -38,11 +38,11 @@ export default function PreviousTeamCard({
{teams.executives.length > 0 && (
<div className="flex flex-col items-center px-0">
<h3 className="text-tertiary-blue text-2xl font-bold">Executives</h3>
<div className="mx-40 grid w-full grid-cols-3 justify-items-center px-2">
<div className="mx-40 grid w-full grid-cols-1 md:grid-cols-3 justify-items-center px-2">
{teams.executives.map((team) => (
<p
key={team.id}
className="mx-3 my-1 text-lg font-bold text-white"
className="mx-3 my-1 text-lg font-bold text-white text-center"
>
{team.name}
</p>
Expand Down
2 changes: 1 addition & 1 deletion web/src/graphql/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export const GET_VALUES = gql`

export const GET_PREVIOUS_TEAMS = gql`
query {
previousTeams {
previousTeams(pagination: { limit: 300 }) {
data {
id
attributes {
Expand Down
2 changes: 1 addition & 1 deletion web/src/screens/ExecScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default function ExecScreen({ navbar }: { navbar: JSX.Element }) {
{errorPreviousTeams ? (
<div className="py-10">There are no previous teams to display</div>
) : (
<div>
<div className=" max-w-[60rem]">
{sortedPreviousTeams.map((year) => (
<PreviousTeamCard
key={year}
Expand Down

0 comments on commit d1b1d36

Please sign in to comment.