Skip to content

Commit e402468

Browse files
committed
fix: correct version indicator placement on welcome screen
- Moved VersionIndicator to be a direct child of the main welcome screen container - This ensures proper absolute positioning relative to the entire welcome area - Fixes layout issue where the version indicator was misaligned due to nested container positioning
1 parent 0b8d41e commit e402468

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

webview-ui/src/components/chat/ChatView.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,6 +1814,16 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
18141814
</>
18151815
) : (
18161816
<div className="flex-1 min-h-0 overflow-y-auto flex flex-col gap-4 relative">
1817+
{/* Version indicator in top-right corner - only on welcome screen */}
1818+
<VersionIndicator
1819+
onClick={() => {
1820+
setShowAnnouncementModal(true)
1821+
onVersionIndicatorClick?.()
1822+
}}
1823+
showBadge={hasNewAnnouncement}
1824+
className="absolute top-2 right-3 z-10"
1825+
/>
1826+
18171827
{/* Moved Task Bar Header Here */}
18181828
{tasks.length !== 0 && (
18191829
<div className="flex text-vscode-descriptionForeground w-full mx-auto px-5 pt-3">
@@ -1829,16 +1839,6 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
18291839
)}
18301840
<div
18311841
className={` w-full flex flex-col gap-4 m-auto ${isExpanded && tasks.length > 0 ? "mt-0" : ""} px-3.5 min-[370px]:px-10 pt-5 transition-all duration-300`}>
1832-
{/* Version indicator in top-right corner - only on welcome screen */}
1833-
<VersionIndicator
1834-
onClick={() => {
1835-
setShowAnnouncementModal(true)
1836-
onVersionIndicatorClick?.()
1837-
}}
1838-
showBadge={hasNewAnnouncement}
1839-
className="absolute top-2 right-3 z-10"
1840-
/>
1841-
18421842
<RooHero />
18431843
{telemetrySetting === "unset" && <TelemetryBanner />}
18441844

0 commit comments

Comments
 (0)