Container list ui fix
This commit is contained in:
@@ -4,7 +4,13 @@ import { DashboardLayout } from "@/components/dashboard/DashboardLayout";
|
|||||||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||||
import { Badge } from "@/components/ui/badge";
|
import { Badge } from "@/components/ui/badge";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { Terminal, MoreVertical, Play, Square, Trash2 } from "lucide-react";
|
import {
|
||||||
|
MoreVertical,
|
||||||
|
Play,
|
||||||
|
Square,
|
||||||
|
Trash2,
|
||||||
|
Container,
|
||||||
|
} from "lucide-react";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { Docker } from "@/lib/types";
|
import { Docker } from "@/lib/types";
|
||||||
import { getDocker } from "@/core/docker";
|
import { getDocker } from "@/core/docker";
|
||||||
@@ -88,7 +94,7 @@ export default function ContainersPage() {
|
|||||||
<Card>
|
<Card>
|
||||||
<CardContent className="p-0">
|
<CardContent className="p-0">
|
||||||
{/* ================= DESKTOP TABLE ================= */}
|
{/* ================= DESKTOP TABLE ================= */}
|
||||||
<div className="hidden md:block">
|
<div className="hidden xl:block">
|
||||||
<table className="w-full">
|
<table className="w-full">
|
||||||
<thead>
|
<thead>
|
||||||
<tr className="border-b border-border">
|
<tr className="border-b border-border">
|
||||||
@@ -119,7 +125,7 @@ export default function ContainersPage() {
|
|||||||
<tr key={container.id} className="data-table-row">
|
<tr key={container.id} className="data-table-row">
|
||||||
<td className="py-3 px-4">
|
<td className="py-3 px-4">
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<Terminal className="w-4 h-4 text-muted-foreground" />
|
<Container className="w-4 h-4 text-muted-foreground" />
|
||||||
<div>
|
<div>
|
||||||
<div className="font-mono text-sm">
|
<div className="font-mono text-sm">
|
||||||
{container.name}
|
{container.name}
|
||||||
@@ -177,13 +183,13 @@ export default function ContainersPage() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* ================= MOBILE CARDS ================= */}
|
{/* ================= MOBILE CARDS ================= */}
|
||||||
<div className="md:hidden divide-y divide-border">
|
<div className="xl:hidden divide-y divide-border">
|
||||||
{containers.map((container) => (
|
{containers.map((container) => (
|
||||||
<div key={container.id} className="p-4 space-y-3">
|
<div key={container.id} className="p-4 space-y-3">
|
||||||
{/* Header */}
|
{/* Header */}
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<Terminal className="w-4 h-4 text-muted-foreground" />
|
<Container className="w-4 h-4 text-muted-foreground" />
|
||||||
<span className="font-mono text-sm">{container.name}</span>
|
<span className="font-mono text-sm">{container.name}</span>
|
||||||
</div>
|
</div>
|
||||||
{/* {container.status} */}
|
{/* {container.status} */}
|
||||||
|
|||||||
Reference in New Issue
Block a user