mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Display text labels near Preview Pane icons
This commit is contained in:
2 files changed
+7
-2
No files matched your search
@@ -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>
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in new issue
Block a user