Skip to content

Commit ef0cf9b

Browse files
authored
fix: responsive layout (#4391)
Signed-off-by: Nahidujjaman Hridoy <hridoyboss12@gmail.com>
1 parent 8d88a34 commit ef0cf9b

2 files changed

Lines changed: 16 additions & 11 deletions

File tree

apps/dokploy/components/dashboard/docker/logs/analyze-logs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export function AnalyzeLogs({ logs, context }: Props) {
9090
disabled={logs.length === 0}
9191
title="Analyze logs with AI"
9292
>
93-
<Bot className="mr-2 h-4 w-4" />
93+
<Bot className="mr-2 size-4" />
9494
AI
9595
</Button>
9696
</PopoverTrigger>

apps/dokploy/components/dashboard/docker/logs/docker-logs-id.tsx

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,13 @@ export const DockerLogsId: React.FC<Props> = ({
347347
title={isPaused ? "Resume logs" : "Pause logs"}
348348
>
349349
{isPaused ? (
350-
<Play className="mr-2 h-4 w-4" />
350+
<Play className="size-4" />
351351
) : (
352-
<Pause className="mr-2 h-4 w-4" />
352+
<Pause className="size-4" />
353353
)}
354-
{isPaused ? "Resume" : "Pause"}
354+
<span className="hidden lg:ml-2 lg:inline">
355+
{isPaused ? "Resume" : "Pause"}
356+
</span>
355357
</Button>
356358
<Button
357359
variant="outline"
@@ -362,29 +364,32 @@ export const DockerLogsId: React.FC<Props> = ({
362364
title="Copy logs to clipboard"
363365
>
364366
{copied ? (
365-
<Check className="mr-2 h-4 w-4" />
367+
<Check className="size-4" />
366368
) : (
367-
<Copy className="mr-2 h-4 w-4" />
369+
<Copy className="size-4" />
368370
)}
369-
Copy
371+
<span className="hidden lg:ml-2 lg:inline">
372+
{copied ? "Copied" : "Copy"}
373+
</span>
370374
</Button>
371375
<Button
372376
variant="outline"
373377
size="sm"
374378
className="h-9 sm:w-auto w-full"
375379
onClick={handleDownload}
376380
disabled={filteredLogs.length === 0 || !data?.Name}
381+
title="Download logs as text file"
377382
>
378-
<DownloadIcon className="mr-2 h-4 w-4" />
379-
Download logs
383+
<DownloadIcon className="size-4" />
384+
<span className="hidden lg:ml-2 lg:inline">Download logs</span>
380385
</Button>
381386
<AnalyzeLogs logs={filteredLogs} context="runtime" />
382387
</div>
383388
</div>
384389
{isPaused && (
385-
<AlertBlock type="warning">
390+
<AlertBlock type="warning" className="items-center">
386391
<div className="flex items-center gap-2">
387-
<Pause className="h-4 w-4" />
392+
<Pause className="size-4" />
388393
<span>
389394
Logs paused
390395
{messageBuffer.length > 0 && (

0 commit comments

Comments
 (0)