|
1 | 1 | import { createSignal, createEffect, For, Show, createMemo, onMount, onCleanup } from "solid-js"; |
2 | 2 | import { Icon } from "../ui/Icon"; |
3 | 3 | import { useRemote, DevContainer, ContainerStatus, DevContainerConfig } from "@/context/RemoteContext"; |
4 | | -import { Button, IconButton, Input, Text, Badge } from "@/components/ui"; |
| 4 | +import { Button, IconButton, Input, Text } from "@/components/ui"; |
5 | 5 |
|
6 | 6 | interface ContainerConnectProps { |
7 | 7 | onContainerSelect?: (containerId: string) => void; |
@@ -56,7 +56,6 @@ function ContainerCard(props: { |
56 | 56 |
|
57 | 57 | const canConnect = () => props.container.status === "running"; |
58 | 58 | const canStart = () => props.container.status === "stopped"; |
59 | | - const canStop = () => props.container.status === "running" || props.container.status === "starting"; |
60 | 59 | const isBusy = () => props.container.status === "building" || props.container.status === "starting"; |
61 | 60 |
|
62 | 61 | const formatUptime = (startedAt?: number) => { |
@@ -371,16 +370,18 @@ function BuildFromDevContainerDialog(props: { |
371 | 370 | > |
372 | 371 | <Icon name="gear" class="w-4 h-4 mt-0.5 flex-shrink-0" style={{ color: "var(--accent)" }} /> |
373 | 372 | <div class="min-w-0"> |
374 | | - <Text size="sm" weight="medium" class="truncate"> |
| 373 | + <Text size="sm" weight="medium" truncate> |
375 | 374 | {config.name || "Default Configuration"} |
376 | 375 | </Text> |
377 | | - <Text size="xs" color="muted" class="truncate"> |
| 376 | + <Text size="xs" color="muted" truncate> |
378 | 377 | {config.path} |
379 | 378 | </Text> |
380 | 379 | <Show when={config.image}> |
381 | | - <Text size="xs" color="muted" class="mt-1"> |
382 | | - Image: {config.image} |
383 | | - </Text> |
| 380 | + <div class="mt-1"> |
| 381 | + <Text size="xs" color="muted"> |
| 382 | + Image: {config.image} |
| 383 | + </Text> |
| 384 | + </div> |
384 | 385 | </Show> |
385 | 386 | </div> |
386 | 387 | </Button> |
@@ -610,9 +611,11 @@ export function ContainerConnect(props: ContainerConnectProps) { |
610 | 611 | <p class="text-sm font-medium mb-1" style={{ color: "var(--text-weak)" }}> |
611 | 612 | No Dev Containers |
612 | 613 | </p> |
613 | | - <Text size="xs" color="muted" class="mb-4"> |
614 | | - Build a container from devcontainer.json to get started |
615 | | - </Text> |
| 614 | + <div class="mb-4"> |
| 615 | + <Text size="xs" color="muted"> |
| 616 | + Build a container from devcontainer.json to get started |
| 617 | + </Text> |
| 618 | + </div> |
616 | 619 | <Button |
617 | 620 | onClick={() => setShowBuildDialog(true)} |
618 | 621 | variant="primary" |
|
0 commit comments