Skip to content

Open source alternative to Semrush and Ahrefs

Use one max page width across the app (EVE-354) (#769)

Carter Smith601ba897ee51
diff --git a/src/client/features/audit/AuditDetail.tsx b/src/client/features/audit/AuditDetail.tsx
index 60cf13af..9395a06c 100644
--- a/src/client/features/audit/AuditDetail.tsx
+++ b/src/client/features/audit/AuditDetail.tsx
@@ -83,7 +83,7 @@ export function AuditDetail({
if (statusQuery.isError) {
return (
<div className="px-4 py-6 md:px-6">
- <div className="mx-auto max-w-3xl space-y-4">
+ <div className="mx-auto max-w-7xl space-y-4">
<QueryError
fallback="We could not load this audit. It may have been deleted."
onRetry={() => void statusQuery.refetch()}
@@ -113,7 +113,7 @@ export function AuditDetail({
return (
<div className="px-4 py-4 md:px-6 md:py-6 pb-24 md:pb-8 overflow-auto">
- <div className="mx-auto max-w-5xl space-y-4">
+ <div className="mx-auto max-w-7xl space-y-4">
<div className="space-y-1">
<Button
variant="ghost"
diff --git a/src/client/features/audit/launch/LaunchView.tsx b/src/client/features/audit/launch/LaunchView.tsx
index f21eba9d..6c1470ca 100644
--- a/src/client/features/audit/launch/LaunchView.tsx
+++ b/src/client/features/audit/launch/LaunchView.tsx
@@ -28,7 +28,7 @@ export function LaunchView({
return (
<div className="px-4 py-4 md:px-6 md:py-6 pb-24 md:pb-8 overflow-auto">
- <div className="mx-auto max-w-5xl space-y-4">
+ <div className="mx-auto max-w-7xl space-y-4">
<PageHeader title="Site Audit" />
<LaunchFormCard
diff --git a/src/client/features/dashboard/DashboardPage.tsx b/src/client/features/dashboard/DashboardPage.tsx
index 28ced2fa..f2077683 100644
--- a/src/client/features/dashboard/DashboardPage.tsx
+++ b/src/client/features/dashboard/DashboardPage.tsx
@@ -74,15 +74,14 @@ export function DashboardPage({ projectId }: { projectId: string }) {
// with the error in place of the audit and backlink cards.
if (!activation || overviewQuery.isPending) {
return (
- <div
- className="mx-auto flex max-w-5xl flex-col gap-5 px-4 py-4 md:px-6 md:py-6"
- aria-busy
- >
- <Skeleton className="h-8 w-52" />
- <Skeleton className="h-36" />
- <div className="grid gap-5 lg:grid-cols-2">
- <Skeleton className="h-44" />
- <Skeleton className="h-44" />
+ <div className="px-4 py-4 md:px-6 md:py-6" aria-busy>
+ <div className="mx-auto flex max-w-7xl flex-col gap-5">
+ <Skeleton className="h-8 w-52" />
+ <Skeleton className="h-36" />
+ <div className="grid gap-5 lg:grid-cols-2">
+ <Skeleton className="h-44" />
+ <Skeleton className="h-44" />
+ </div>
</div>
</div>
);
@@ -139,7 +138,7 @@ export function DashboardPage({ projectId }: { projectId: string }) {
return (
<div className="px-4 py-4 pb-24 md:px-6 md:py-6 md:pb-8">
- <div className="mx-auto flex max-w-5xl flex-col gap-5">
+ <div className="mx-auto flex max-w-7xl flex-col gap-5">
<h1 className="text-2xl font-semibold">Dashboard</h1>
<WorkspaceMergeBanner />
diff --git a/src/client/features/help/SecretHelpPage.tsx b/src/client/features/help/SecretHelpPage.tsx
index 2f199be1..b56c0d97 100644
--- a/src/client/features/help/SecretHelpPage.tsx
+++ b/src/client/features/help/SecretHelpPage.tsx
@@ -48,8 +48,8 @@ export function SecretHelpPage({
terminalPromptHint: ReactNode;
}) {
return (
- <div className="h-full overflow-auto">
- <div className="mx-auto w-full max-w-3xl space-y-4 px-4 pt-8 pb-24 sm:px-6 md:pt-12 md:pb-12">
+ <div className="h-full overflow-auto px-4 pt-8 pb-24 md:px-6 md:pt-12 md:pb-12">
+ <div className="mx-auto max-w-7xl space-y-4">
<PageHeader title={title} description={intro} />
<Card>
diff --git a/src/client/features/lighthouse/issues/LighthouseIssuesScreen.tsx b/src/client/features/lighthouse/issues/LighthouseIssuesScreen.tsx
index a040766e..67ce26dd 100644
--- a/src/client/features/lighthouse/issues/LighthouseIssuesScreen.tsx
+++ b/src/client/features/lighthouse/issues/LighthouseIssuesScreen.tsx
@@ -82,7 +82,7 @@ export function LighthouseIssuesScreen({
return (
<div className="px-4 py-3 md:px-6 md:py-4 pb-24 md:pb-8 overflow-auto">
- <div className="mx-auto max-w-5xl space-y-4">
+ <div className="mx-auto max-w-7xl space-y-4">
<LighthouseIssuesHeader
onBack={() =>
void navigate({
diff --git a/src/routes/_app/ai.tsx b/src/routes/_app/ai.tsx
index df0c28ef..53ed7e5b 100644
--- a/src/routes/_app/ai.tsx
+++ b/src/routes/_app/ai.tsx
@@ -73,7 +73,7 @@ function AiPage() {
return (
<div className="h-full overflow-auto px-4 py-12 md:px-6 md:py-16 pb-24 md:pb-12">
- <div className="mx-auto max-w-2xl">
+ <div className="mx-auto max-w-7xl">
<PageHeader
title="Agent setup"
description="The most powerful way to use OpenSEO is through the AI agent you already use. Set it up once, then ask it anything."
diff --git a/src/routes/_app/billing.tsx b/src/routes/_app/billing.tsx
index dfe24a1e..13cfa7d9 100644
--- a/src/routes/_app/billing.tsx
+++ b/src/routes/_app/billing.tsx
@@ -97,7 +97,7 @@ function BillingPage() {
if (billingRouteState === "error") {
return (
- <div className="mx-auto w-full max-w-2xl space-y-4 p-4 py-10 md:p-6 md:py-12">
+ <div className="mx-auto box-content max-w-7xl space-y-4 px-4 py-10 md:px-6 md:py-12">
<PageHeader title="Billing unavailable" />
<QueryError
error={customerQuery.error}
@@ -156,7 +156,7 @@ function BillingPage() {
}
return (
- <div className="mx-auto w-full max-w-2xl space-y-5 p-4 py-10 md:p-6 md:py-12">
+ <div className="mx-auto box-content max-w-7xl space-y-5 px-4 py-10 md:px-6 md:py-12">
<PageHeader title="Billing" />
{customerQuery.isError ? (
diff --git a/src/routes/_app/billing_.fix-payment.tsx b/src/routes/_app/billing_.fix-payment.tsx
index f9a5f84d..fcbfa785 100644
--- a/src/routes/_app/billing_.fix-payment.tsx
+++ b/src/routes/_app/billing_.fix-payment.tsx
@@ -222,7 +222,7 @@ function FixPaymentPage() {
function Page({ title, children }: { title: string; children: ReactNode }) {
return (
- <div className="mx-auto w-full max-w-xl space-y-5 p-4 py-10 md:p-6 md:py-12">
+ <div className="mx-auto box-content max-w-7xl space-y-5 px-4 py-10 md:px-6 md:py-12">
<div>
<p className="text-sm font-medium text-muted-foreground">Billing</p>
<h1 className="mt-1 text-2xl font-bold tracking-tight">{title}</h1>
diff --git a/src/routes/_app/p/$projectId/context.tsx b/src/routes/_app/p/$projectId/context.tsx
index ed5bbb20..868a25aa 100644
--- a/src/routes/_app/p/$projectId/context.tsx
+++ b/src/routes/_app/p/$projectId/context.tsx
@@ -9,8 +9,8 @@ export const Route = createFileRoute("/_app/p/$projectId/context")({
function ProjectContextRoute() {
const { projectId } = Route.useParams();
return (
- <div className="h-full overflow-auto">
- <div className="mx-auto w-full max-w-2xl space-y-8 p-4 py-8 pb-24 sm:p-6 md:py-12 md:pb-12">
+ <div className="h-full overflow-auto px-4 py-8 pb-24 md:px-6 md:py-12 md:pb-12">
+ <div className="mx-auto max-w-7xl space-y-8">
<ProjectPageHeader projectId={projectId} title="Context" />
<ProjectContextPage projectId={projectId} />
diff --git a/src/routes/_app/p/$projectId/reports/$reportId.tsx b/src/routes/_app/p/$projectId/reports/$reportId.tsx
index 817961eb..117d3e96 100644
--- a/src/routes/_app/p/$projectId/reports/$reportId.tsx
+++ b/src/routes/_app/p/$projectId/reports/$reportId.tsx
@@ -110,7 +110,7 @@ function ReportDetailPage() {
if (notFound || reportQuery.data === undefined) {
return (
<div className="px-4 py-6 md:px-6">
- <div className="mx-auto max-w-3xl space-y-4">
+ <div className="mx-auto max-w-7xl space-y-4">
<BackLink to="/p/$projectId/reports" params={{ projectId }}>
Reports
</BackLink>
@@ -157,8 +157,10 @@ function ReportDetailPage() {
);
}
+ // The max width includes the padding here, so it adds the padding back to
+ // keep the content as wide as the other pages (max-w-7xl).
return (
- <div className="flex h-full min-h-0 flex-col gap-3 px-4 py-4 md:px-6 md:py-6">
+ <div className="mx-auto flex h-full min-h-0 max-w-[calc(var(--container-7xl)+2rem)] flex-col gap-3 px-4 py-4 md:max-w-[calc(var(--container-7xl)+3rem)] md:px-6 md:py-6">
{reportQuery.isError ? <QueryError {...loadError} /> : null}
<div className="space-y-3">
<BackLink to="/p/$projectId/reports" params={{ projectId }}>
diff --git a/src/routes/_app/p/$projectId/reports/index.tsx b/src/routes/_app/p/$projectId/reports/index.tsx
index fcbfc096..095791ad 100644
--- a/src/routes/_app/p/$projectId/reports/index.tsx
+++ b/src/routes/_app/p/$projectId/reports/index.tsx
@@ -38,7 +38,7 @@ function ReportsPage() {
return (
<div className="overflow-auto px-4 py-4 pb-24 md:px-6 md:py-6 md:pb-8">
- <div className="mx-auto max-w-5xl space-y-4">
+ <div className="mx-auto max-w-7xl space-y-4">
<PageHeader
title="Reports"
description="HTML reports your agents saved to this project."
diff --git a/src/routes/_app/p/$projectId/reports/templates.tsx b/src/routes/_app/p/$projectId/reports/templates.tsx
index dcd37280..bc2a0f05 100644
--- a/src/routes/_app/p/$projectId/reports/templates.tsx
+++ b/src/routes/_app/p/$projectId/reports/templates.tsx
@@ -65,7 +65,7 @@ function ReportTemplatesPage() {
return (
<div className="overflow-auto px-4 py-4 pb-24 md:px-6 md:py-6 md:pb-8">
- <div className="mx-auto max-w-5xl space-y-4">
+ <div className="mx-auto max-w-7xl space-y-4">
<BackLink to="/p/$projectId/reports" params={{ projectId }}>
Reports
</BackLink>
diff --git a/src/routes/_app/p/$projectId/saved.tsx b/src/routes/_app/p/$projectId/saved.tsx
index 0e7abd8b..6b7df434 100644
--- a/src/routes/_app/p/$projectId/saved.tsx
+++ b/src/routes/_app/p/$projectId/saved.tsx
@@ -310,7 +310,7 @@ function SavedKeywordsPage() {
return (
<div className="overflow-auto px-4 py-4 pb-24 md:px-6 md:py-6 md:pb-8">
- <div className="mx-auto max-w-6xl space-y-4">
+ <div className="mx-auto max-w-7xl space-y-4">
<SavedKeywordsHeader
totalCount={totalCount}
exporting={exporter.exporting}
diff --git a/src/routes/_app/p/$projectId/settings.tsx b/src/routes/_app/p/$projectId/settings.tsx
index 317acac7..c450329b 100644
--- a/src/routes/_app/p/$projectId/settings.tsx
+++ b/src/routes/_app/p/$projectId/settings.tsx
@@ -10,8 +10,8 @@ function ProjectSettingsLayout() {
const { projectId } = Route.useParams();
return (
- <div className="h-full overflow-auto">
- <div className="mx-auto w-full max-w-2xl space-y-8 p-4 py-8 pb-24 sm:p-6 md:py-12 md:pb-12">
+ <div className="h-full overflow-auto px-4 py-8 pb-24 md:px-6 md:py-12 md:pb-12">
+ <div className="mx-auto max-w-7xl space-y-8">
<div className="space-y-4">
<ProjectPageHeader
projectId={projectId}
diff --git a/src/routes/_app/projects.tsx b/src/routes/_app/projects.tsx
index c77386fd..3d87151d 100644
--- a/src/routes/_app/projects.tsx
+++ b/src/routes/_app/projects.tsx
@@ -32,7 +32,7 @@ function ProjectsPage() {
return (
<div className="h-full overflow-auto px-4 py-8 pb-24 md:px-6 md:py-12 md:pb-8">
- <div className="mx-auto w-full max-w-2xl space-y-6">
+ <div className="mx-auto max-w-7xl space-y-6">
<PageHeader
title="Projects"
description="Each project has its own Search Console, rank tracking, and audits."
diff --git a/src/routes/_app/settings.tsx b/src/routes/_app/settings.tsx
index 127823c6..798cc232 100644
--- a/src/routes/_app/settings.tsx
+++ b/src/routes/_app/settings.tsx
@@ -20,8 +20,8 @@ function SettingsLayout() {
];
return (
- <div className="h-full overflow-auto">
- <div className="mx-auto w-full max-w-4xl space-y-8 p-4 py-8 pb-24 sm:p-6 md:py-12 md:pb-12">
+ <div className="h-full overflow-auto px-4 py-8 pb-24 md:px-6 md:py-12 md:pb-12">
+ <div className="mx-auto max-w-7xl space-y-8">
<div className="space-y-4">
<PageHeader title="Settings" />
<NavTabs label="Settings sections">
diff --git a/src/routes/_app/support.tsx b/src/routes/_app/support.tsx
index 3f861f05..c1b49238 100644
--- a/src/routes/_app/support.tsx
+++ b/src/routes/_app/support.tsx
@@ -19,8 +19,8 @@ export const Route = createFileRoute("/_app/support")({
function SupportPage() {
return (
- <div className="h-full overflow-auto">
- <div className="mx-auto w-full max-w-xl space-y-8 px-4 pt-8 pb-24 sm:px-6 md:pt-12 md:pb-12">
+ <div className="h-full overflow-auto px-4 pt-8 pb-24 md:px-6 md:pt-12 md:pb-12">
+ <div className="mx-auto max-w-7xl space-y-8">
<div className="space-y-1">
<p className="text-sm font-medium text-muted-foreground">
Help & Community