From 66a49c29fdea3b198e3c1cab33519234f9df413b Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 30 Mar 2024 17:05:01 +0000 Subject: [PATCH] interactivity tweaks --- app/api/prices/route.ts | 3 +-- app/api/quote/route.ts | 3 +-- app/globals.css | 2 +- app/page.module.css | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/api/prices/route.ts b/app/api/prices/route.ts index 798f0e3..0f5c59e 100644 --- a/app/api/prices/route.ts +++ b/app/api/prices/route.ts @@ -39,8 +39,7 @@ export async function GET(request: NextRequest) { return new Response(JSON.stringify(data), { status, headers: { - 'Content-Type': 'application/json', - 'Cache-Control': 'public, s-maxage=10' + 'Content-Type': 'application/json' } }) } diff --git a/app/api/quote/route.ts b/app/api/quote/route.ts index ac06e35..5de51a4 100644 --- a/app/api/quote/route.ts +++ b/app/api/quote/route.ts @@ -41,8 +41,7 @@ export async function GET(request: NextRequest) { return new Response(JSON.stringify(data), { status, headers: { - 'Content-Type': 'application/json', - 'Cache-Control': 'public, s-maxage=10' + 'Content-Type': 'application/json' } }) } diff --git a/app/globals.css b/app/globals.css index 4eba5d2..e24b1d2 100644 --- a/app/globals.css +++ b/app/globals.css @@ -1,5 +1,5 @@ :root { - --max-width: 740px; + --max-width: 680px; --border-radius: 0.3rem; --foreground-rgb: 20, 20, 20; diff --git a/app/page.module.css b/app/page.module.css index eadfc05..cf71c71 100644 --- a/app/page.module.css +++ b/app/page.module.css @@ -21,6 +21,6 @@ flex-shrink: 0; font-size: 0.8rem; width: 100%; - max-width: calc(var(--max-width) * 1.5); + max-width: var(--max-width); margin: 3rem auto 0 auto; }