Skip to content

Commit abcb180

Browse files
fix(web): center chat box on Ask GitHub landing page (#1046)
* 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> * docs: add CHANGELOG entry for Ask GitHub chat box centering fix Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
1 parent 2168586 commit abcb180

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
- Fixed Ask GitHub landing page chat box placement to be centered on the page instead of at the bottom. [#1046](https://github.com/sourcebot-dev/sourcebot/pull/1046)
12+
1013
## [4.16.2] - 2026-03-25
1114

1215
### Fixed

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)