Skip to content

Commit a1224b0

Browse files
cursoragentmsukkari
andcommitted
fix(web): center chat box on Ask GitHub landing page
Changed the layout from justify-between (which placed repo info at center and chat box at bottom) to a fully centered layout where both repo info and chat box are grouped together in the center of the page. This matches user expectations and aligns with how similar tools (like Claude.ai) present their chat interfaces. Fixes the layout issue where the chat box felt disconnected from the repository title. Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
1 parent 2168586 commit a1224b0

File tree

1 file changed

+6
-7
lines changed
  • packages/web/src/app/[domain]/askgh/[owner]/[repo]/components

1 file changed

+6
-7
lines changed

packages/web/src/app/[domain]/askgh/[owner]/[repo]/components/landingPage.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ export const LandingPage = ({
4646
const displayName = repoDisplayName ?? repoName;
4747

4848
return (
49-
<div className="min-h-screen flex flex-col justify-between p-4">
50-
{/* Center Section - Repository Info */}
51-
<div className="flex-1 flex items-center justify-center">
49+
<div className="min-h-screen flex flex-col items-center justify-center p-4">
50+
{/* Centered Content - Repository Info + ChatBox */}
51+
<div className="flex flex-col items-center gap-8 w-full max-w-[800px]">
52+
{/* Repository Info */}
5253
<div className="flex items-center gap-4">
5354
{imageSrc && (
5455
<Image
@@ -62,11 +63,9 @@ export const LandingPage = ({
6263
)}
6364
<h1 className="text-2xl font-bold">{displayName}</h1>
6465
</div>
65-
</div>
6666

67-
{/* Bottom Section - ChatBox */}
68-
<div className="flex justify-center pb-8">
69-
<div className="w-full max-w-[800px]">
67+
{/* ChatBox */}
68+
<div className="w-full">
7069
<div className="border rounded-md w-full shadow-sm">
7170
<ChatBox
7271
onSubmit={(children) => {

0 commit comments

Comments
 (0)