Skip to content
4 changes: 2 additions & 2 deletions apps/web/app/analyze-user/[login]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ export default function UserAnalyzeLayout ({ children }: { children: React.React
<ScrollspyContextProvider>
<div className="flex">
<div className="flex w-full flex-col md:flex-row">
<aside className="hidden border-r border-[#2f3032] bg-[#242526] md:block md:w-[160px] md:flex-none md:min-h-[calc(100vh-var(--site-header-height))]">
<aside className="hidden border-r border-[#2f3032] bg-[#242526] md:block md:w-[300px] md:flex-none md:min-h-[calc(100vh-var(--site-header-height))]">
<div className="sticky top-[var(--site-header-height)] h-full max-h-[calc(100vh-var(--site-header-height))] overflow-y-auto styled-scrollbar">
<Navigation items={navItems} />
</div>
</aside>
<main className="flex-1 block">
<div className="max-w-[1280px] px-6 pt-16 pb-0 md:px-8">{children}</div>
<div className="mx-auto max-w-[1600px] px-6 pt-16 pb-0 md:px-8 lg:px-12">{children}</div>
</main>
</div>
</div>
Expand Down
10 changes: 1 addition & 9 deletions apps/web/app/analyze-user/[login]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { fetchOwnerInfo } from '@/app/analyze/(org)/[owner]/fetchOwner';
import AnalyzeOwnerContextProvider from '@/components/Context/Analyze/AnalyzeOwner';
import { BreadcrumbListJsonLd, PersonJsonLd } from '@/components/json-ld';
import { Breadcrumb } from '@/components/Breadcrumb';
import { Metadata } from 'next';
import UserAnalyzeContent from './content';

Expand All @@ -17,14 +16,7 @@ export default async function Page ({ params }: { params: Promise<{ login: strin
{ name: 'Analyze', url: '/analyze' },
{ name: displayName },
]} />
<div className="mx-auto max-w-[1280px] px-6 sm:px-8">
<Breadcrumb
items={[
{ name: 'Analyze', href: '/analyze' },
{ name: displayName },
]}
/>
</div>

<PersonJsonLd
name={displayName}
login={data.login}
Expand Down
4 changes: 2 additions & 2 deletions apps/web/app/analyze/(org)/[owner]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ export default function UserOrgAnalyzeLayout ({ children }: { children: React.Re
<ScrollspyContextProvider>
<div className="flex">
<div className="flex w-full flex-col md:flex-row">
<aside className="hidden border-r border-[#2f3032] bg-[#242526] md:block md:w-[160px] md:flex-none md:min-h-[calc(100vh-var(--site-header-height))]">
<aside className="hidden border-r border-[#2f3032] bg-[#242526] md:block md:w-[300px] md:flex-none md:min-h-[calc(100vh-var(--site-header-height))]">
<div className="sticky top-[var(--site-header-height)] h-full max-h-[calc(100vh-var(--site-header-height))] overflow-y-auto styled-scrollbar">
<Navigation items={navItems} />
</div>
</aside>
<main className="flex-1 block">
<div className="max-w-[1280px] px-6 pt-16 pb-0 md:px-8">{children}</div>
<div className="mx-auto max-w-[1600px] px-6 pt-16 pb-0 md:px-8 lg:px-12">{children}</div>
</main>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions apps/web/app/analyze/(repo)/[owner]/[repo]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ export default function RepoAnalyzeLayout({ children }: { children: React.ReactN
<ScrollspyContextProvider>
<div className="flex">
<div className="flex w-full flex-col md:flex-row">
<aside className="hidden border-r border-[#2f3032] bg-[#242526] md:block md:w-[160px] md:flex-none md:min-h-[calc(100vh-var(--site-header-height))]">
<aside className="hidden border-r border-[#2f3032] bg-[#242526] md:block md:w-[300px] md:flex-none md:min-h-[calc(100vh-var(--site-header-height))]">
<div className="sticky top-[var(--site-header-height)] h-full max-h-[calc(100vh-var(--site-header-height))] overflow-y-auto styled-scrollbar">
<Navigation items={navItems} />
</div>
</aside>
<main className="flex-1 block">
<div className="max-w-[1280px] px-6 py-0 md:px-8">{children}</div>
<div className="mx-auto max-w-[1600px] px-6 py-0 md:px-8 lg:px-12">{children}</div>
</main>
</div>
</div>
Expand Down
11 changes: 1 addition & 10 deletions apps/web/app/analyze/(repo)/[owner]/[repo]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Metadata } from 'next';
import { redirect } from 'next/navigation';
import { getRepoByName } from '@/lib/server/internal-api';
import { BreadcrumbListJsonLd, SoftwareApplicationJsonLd, SoftwareSourceCodeJsonLd } from '@/components/json-ld';
import { Breadcrumb } from '@/components/Breadcrumb';
import ShareButtons from '@/components/ShareButtons';
import RepoAnalyzePage from './content';

Expand Down Expand Up @@ -62,15 +61,7 @@ export default async function Page({ params, searchParams }: PageProps) {
language={repoInfo.language}
url={`/analyze/${owner}/${repo}`}
/>
<div className="mx-auto max-w-[1280px] px-6 sm:px-8">
<Breadcrumb
items={[
{ name: 'Analyze', href: '/analyze' },
{ name: owner, href: `/analyze/${owner}` },
{ name: repo },
]}
/>
</div>

<ShareButtons
url={`/analyze/${owner}/${repo}`}
title={`${owner}/${repo} — check the full analytics on OSSInsight`}
Expand Down
10 changes: 5 additions & 5 deletions apps/web/app/collections/[slug]/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,14 +247,14 @@ function RankingTableSkeleton({ isMonthView }: { isMonthView: boolean }) {
<LoadingSkeleton className="mx-auto h-4 w-52" />

<div className="mt-4 overflow-x-auto">
<Table className="min-w-[860px] border-collapse">
<Table className="w-full min-w-[860px] border-collapse">
<TableHeader className="[&_tr]:border-b-[#222]">
<TableRow className="border-b border-[#222] hover:bg-transparent">
<TableHead className="h-12 px-4"><LoadingSkeleton className="h-6 w-28" /></TableHead>
{isMonthView && (
<TableHead className="h-12 px-4"><LoadingSkeleton className="h-6 w-28" /></TableHead>
)}
<TableHead className="h-12 px-4"><LoadingSkeleton className="h-6 w-32" /></TableHead>
<TableHead className="h-12 px-4" style={{ width: '99%' }}><LoadingSkeleton className="h-6 w-32" /></TableHead>
<TableHead className="h-12 px-4"><LoadingSkeleton className="h-6 w-24" /></TableHead>
<TableHead className="h-12 px-4 text-right"><LoadingSkeleton className="ml-auto h-6 w-20" /></TableHead>
</TableRow>
Expand Down Expand Up @@ -415,7 +415,7 @@ function MonthlyRankingSection({ collectionId, initialRankingData }: { collectio
</div>

<div className="mt-4 overflow-x-auto">
<Table className="min-w-[860px] border-collapse">
<Table className="w-full min-w-[860px] border-collapse">
<TableHeader className="[&_tr]:border-b-[#222]">
<TableRow className="border-b border-[#222] hover:bg-transparent">
<TableHead className="h-12 px-4 text-[20px] font-bold text-white">
Expand All @@ -426,7 +426,7 @@ function MonthlyRankingSection({ collectionId, initialRankingData }: { collectio
{formatMonth(rows[0]?.last_month)}
</TableHead>
)}
<TableHead className="h-12 px-4 text-[20px] font-bold text-white">Repository</TableHead>
<TableHead className="h-12 px-4 text-[20px] font-bold text-white" style={{ width: '99%' }}>Repository</TableHead>
<TableHead className="h-12 px-4 text-[20px] font-bold text-white">
{activeMetric?.title}
</TableHead>
Expand Down Expand Up @@ -696,7 +696,7 @@ function HistoryRankSection({ collectionName, collectionId }: { collectionName:

export function CollectionDetail({ collection, initialRankingData, faqItems }: { collection: Collection; initialRankingData?: CollectionQueryResponse<RankingRow> | null; faqItems?: { question: string; answer: string }[] }) {
return (
<div className="mx-auto max-w-[1400px] px-6 py-8 sm:px-8 lg:px-12">
<div className="px-6 py-8 sm:px-8 lg:px-10">
<Breadcrumb
items={[
{ name: 'Collections', href: '/collections' },
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/collections/[slug]/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function CollectionSidebar({
return (
<aside
className="sticky top-[60px] hidden h-[calc(100vh-60px)] shrink-0 overflow-hidden border-r border-[#30313a] bg-transparent transition-all lg:block"
style={{ width: collapsed ? 30 : 300 }}
style={{ width: collapsed ? 30 : 380 }}
>
{collapsed ? (
<button
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/collections/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ export function CollectionsList({
}, [previewItems]);

return (
<div className="mx-auto max-w-[1280px] px-6 py-8 sm:px-8">
<div className="mx-auto max-w-[1600px] px-6 py-8 sm:px-8 lg:px-12">
<h1 className="text-center text-[30px] font-semibold leading-none tracking-[-0.045em] text-[#f7f7f4] [text-shadow:0_1px_0_rgba(255,255,255,0.05),0_18px_34px_rgba(0,0,0,0.34)] sm:text-[36px] xl:text-[40px]">
Explore Collections
</h1>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ export default function RepoAnalyzeLayout({ children }: { children: React.ReactN
<ScrollspyContextProvider>
<div className="flex">
<div className="flex w-full flex-col md:flex-row">
<aside className="hidden border-r border-[#2f3032] bg-[#242526] md:block md:w-[160px] md:flex-none md:min-h-[calc(100vh-var(--site-header-height))]">
<aside className="hidden border-r border-[#2f3032] bg-[#242526] md:block md:w-[300px] md:flex-none md:min-h-[calc(100vh-var(--site-header-height))]">
<div className="sticky top-[var(--site-header-height)] h-full max-h-[calc(100vh-var(--site-header-height))] overflow-y-auto styled-scrollbar">
<Navigation items={navItems} />
</div>
</aside>
<main className="flex-1 block">
<div className="max-w-[1280px] px-6 py-0 md:px-8">{children}</div>
<div className="mx-auto max-w-[1600px] px-6 py-0 md:px-8 lg:px-12">{children}</div>
</main>
</div>
</div>
Expand Down