Display text labels near Preview Pane icons

This commit is contained in:
Alex Gleason committed 2025-12-25 05:50:16 -06:00
1 parent 598447b89f
commit 932db9107d
2 files changed
+7 -2

No files matched your search

+6 -1
View File
@@ -526,6 +526,7 @@ export function PreviewPane({ projectId, activeTab, onToggleView, isPreviewable
className="h-8 gap-2 relative"
>
<Bug className="h-4 w-4" />
<span className="hidden lg:inline">Logs</span>
{hasConsoleErrors && (
<span className="absolute -top-1 -right-1 h-3 w-3 rounded-full border-2 border-background bg-red-500" />
)}
@@ -618,7 +619,7 @@ export function PreviewPane({ projectId, activeTab, onToggleView, isPreviewable
size="sm"
onClick={toggleFullscreen}
className="h-8 w-8 p-0"
title={isFullscreen ? 'Exit immersive view' : 'Enter immersive view'}
title={isFullscreen ? 'Exit fullscreen' : 'Enter fullscreen'}
>
{isFullscreen ? (
<Shrink className="h-4 w-4" />
@@ -661,6 +662,7 @@ export function PreviewPane({ projectId, activeTab, onToggleView, isPreviewable
) : (
<Hammer className="h-4 w-4" />
)}
<span className="hidden lg:inline">Build</span>
</Button>
{(!isMobile && onToggleView && isPreviewable) && (
<Button
@@ -670,6 +672,7 @@ export function PreviewPane({ projectId, activeTab, onToggleView, isPreviewable
className="h-8 gap-2"
>
<Code className="h-4 w-4" />
<span className="hidden lg:inline">Code</span>
</Button>
)}
<ConsoleDropdown />
@@ -837,6 +840,7 @@ export function PreviewPane({ projectId, activeTab, onToggleView, isPreviewable
className="gap-2 text-muted-foreground hover:text-foreground"
>
<Terminal className="h-4 w-4" />
<span className="hidden lg:inline">Terminal</span>
</Button>
</div>
)}
@@ -851,6 +855,7 @@ export function PreviewPane({ projectId, activeTab, onToggleView, isPreviewable
className="gap-2 text-muted-foreground hover:text-foreground"
>
<Terminal className="h-4 w-4" />
<span className="hidden lg:inline">Terminal</span>
</Button>
<GitStatusIndicator projectId={projectId} />
</div>
+1 -1
View File
@@ -123,7 +123,7 @@ export function BrowserAddressBar({
variant="ghost"
size="sm"
onClick={onRefresh}
className="size-6 absolute right-1 top-1/2 -translate-y-1/2 hover:bg-muted/50 rounded-full transition-colors group"
className="size-6 absolute right-1 top-1/2 -translate-y-1/2 hover:bg-muted/50 rounded-full transition-colors group px-1.5"
title="Refresh"
>
<RefreshCw className="size-3 text-muted-foreground transition-colors group-hover:text-foreground" />