Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

Put Docker on the shared page shell

Juan Denis5930ed5ac473
diff --git a/frontend/src/i18n/locales/ar.json b/frontend/src/i18n/locales/ar.json
index 71666208..a1963e53 100644
--- a/frontend/src/i18n/locales/ar.json
+++ b/frontend/src/i18n/locales/ar.json
@@ -1570,14 +1570,9 @@
"dockerNotAvailable": "Docker غير متوفر",
"ensureDockerDesktopIsInstalledAnd": "تأكد من تثبيت Docker Desktop وتشغيله",
"images": "الصور",
- "inventory": "جرد",
- "maintenance": "صيانة",
"networks": "الشبكات",
"onLinuxMakeSureTheDocker": "على Linux، تأكد من بدء تشغيل البرنامج الخفي Docker",
- "resources": "موارد",
"retryConnection": "أعد محاولة الاتصال",
- "running": "جري",
- "stopped": "توقف",
"targets": "الأهداف",
"toUseDockerManagement": "لاستخدام إدارة Docker:",
"verifyTheUserHasPermissionsTo": "تحقق من أن المستخدم لديه أذونات للوصول إلى Docker",
diff --git a/frontend/src/i18n/locales/bn.json b/frontend/src/i18n/locales/bn.json
index e09f1797..f9283a2d 100644
--- a/frontend/src/i18n/locales/bn.json
+++ b/frontend/src/i18n/locales/bn.json
@@ -1570,14 +1570,9 @@
"dockerNotAvailable": "Docker উপলব্ধ নয়",
"ensureDockerDesktopIsInstalledAnd": "Docker ডেস্কটপ ইনস্টল এবং চলমান আছে তা নিশ্চিত করুন",
"images": "ছবি",
- "inventory": "ইনভেন্টরি",
- "maintenance": "রক্ষণাবেক্ষণ",
"networks": "নেটওয়ার্ক",
"onLinuxMakeSureTheDocker": "Linux এ, নিশ্চিত করুন যে Docker ডেমন শুরু হয়েছে",
- "resources": "সম্পদ",
"retryConnection": "সংযোগ পুনরায় চেষ্টা করুন",
- "running": "চলমান",
- "stopped": "থেমে গেল",
"targets": "টার্গেট",
"toUseDockerManagement": "Docker ব্যবস্থাপনা ব্যবহার করতে:",
"verifyTheUserHasPermissionsTo": "ব্যবহারকারীর Docker অ্যাক্সেস করার অনুমতি আছে তা যাচাই করুন",
diff --git a/frontend/src/i18n/locales/de.json b/frontend/src/i18n/locales/de.json
index 61ce72a0..9cb8562b 100644
--- a/frontend/src/i18n/locales/de.json
+++ b/frontend/src/i18n/locales/de.json
@@ -1570,14 +1570,9 @@
"dockerNotAvailable": "Docker nicht verfügbar",
"ensureDockerDesktopIsInstalledAnd": "Stellen Sie sicher, dass Docker Desktop installiert ist und ausgeführt wird",
"images": "Bilder",
- "inventory": "Inventar",
- "maintenance": "Wartung",
"networks": "Netzwerke",
"onLinuxMakeSureTheDocker": "Stellen Sie unter Linux sicher, dass der Docker-Daemon gestartet ist",
- "resources": "Ressourcen",
"retryConnection": "Verbindung erneut versuchen",
- "running": "Laufen",
- "stopped": "Angehalten",
"targets": "Ziele",
"toUseDockerManagement": "So verwenden Sie die Docker-Verwaltung:",
"verifyTheUserHasPermissionsTo": "Stellen Sie sicher, dass der Benutzer über Berechtigungen zum Zugriff auf Docker verfügt",
diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json
index 600b35b9..6787b61b 100644
--- a/frontend/src/i18n/locales/en.json
+++ b/frontend/src/i18n/locales/en.json
@@ -1825,14 +1825,9 @@
"dockerNotAvailable": "Docker Not Available",
"ensureDockerDesktopIsInstalledAnd": "Ensure Docker Desktop is installed and running",
"images": "Images",
- "inventory": "Inventory",
- "maintenance": "Maintenance",
"networks": "Networks",
"onLinuxMakeSureTheDocker": "On Linux, make sure the Docker daemon is started",
- "resources": "Resources",
"retryConnection": "Retry Connection",
- "running": "Running",
- "stopped": "Stopped",
"targets": "Targets",
"toUseDockerManagement": "To use Docker management:",
"verifyTheUserHasPermissionsTo": "Verify the user has permissions to access Docker",
diff --git a/frontend/src/i18n/locales/es.json b/frontend/src/i18n/locales/es.json
index 400f400a..3ae19e81 100644
--- a/frontend/src/i18n/locales/es.json
+++ b/frontend/src/i18n/locales/es.json
@@ -1571,14 +1571,9 @@
"dockerNotAvailable": "Docker no disponible",
"ensureDockerDesktopIsInstalledAnd": "Asegúrate de que Docker Desktop esté instalado y en ejecución",
"images": "Imágenes",
- "inventory": "Inventario",
- "maintenance": "Mantenimiento",
"networks": "Redes",
"onLinuxMakeSureTheDocker": "En Linux, asegúrate de que el demonio de Docker esté iniciado",
- "resources": "Recursos",
"retryConnection": "Reintentar conexión",
- "running": "En ejecución",
- "stopped": "Detenido",
"targets": "Destinos",
"toUseDockerManagement": "Para usar la gestión de Docker:",
"verifyTheUserHasPermissionsTo": "Verifica que el usuario tenga permisos para acceder a Docker",
diff --git a/frontend/src/i18n/locales/fr.json b/frontend/src/i18n/locales/fr.json
index d6cc6802..3aee3f17 100644
--- a/frontend/src/i18n/locales/fr.json
+++ b/frontend/src/i18n/locales/fr.json
@@ -1570,14 +1570,9 @@
"dockerNotAvailable": "Docker Non disponible",
"ensureDockerDesktopIsInstalledAnd": "Assurez-vous que Docker Desktop est installé et en cours d'exécution.",
"images": "Images",
- "inventory": "Inventaire",
- "maintenance": "Entretien",
"networks": "Réseaux",
"onLinuxMakeSureTheDocker": "Sur Linux, assurez-vous que le démon Docker est démarré",
- "resources": "Ressources",
"retryConnection": "Réessayer la connexion",
- "running": "En cours d'exécution",
- "stopped": "Arrêté",
"targets": "Cibles",
"toUseDockerManagement": "Pour utiliser la gestion Docker :",
"verifyTheUserHasPermissionsTo": "Vérifiez que l'utilisateur dispose des autorisations nécessaires pour accéder à Docker.",
diff --git a/frontend/src/i18n/locales/id.json b/frontend/src/i18n/locales/id.json
index cb45a092..5794f415 100644
--- a/frontend/src/i18n/locales/id.json
+++ b/frontend/src/i18n/locales/id.json
@@ -1570,14 +1570,9 @@
"dockerNotAvailable": "Docker Tidak Tersedia",
"ensureDockerDesktopIsInstalledAnd": "Pastikan Desktop Docker diinstal dan dijalankan",
"images": "Gambar",
- "inventory": "Inventaris",
- "maintenance": "Pemeliharaan",
"networks": "Jaringan",
"onLinuxMakeSureTheDocker": "Pada Linux, pastikan daemon Docker dimulai",
- "resources": "Sumber daya",
"retryConnection": "Coba Lagi Koneksi",
- "running": "Berlari",
- "stopped": "Berhenti",
"targets": "Target",
"toUseDockerManagement": "Untuk menggunakan manajemen Docker:",
"verifyTheUserHasPermissionsTo": "Verifikasikan bahwa pengguna memiliki izin untuk mengakses Docker",
diff --git a/frontend/src/i18n/locales/it.json b/frontend/src/i18n/locales/it.json
index 73b8e0f4..2f676cd4 100644
--- a/frontend/src/i18n/locales/it.json
+++ b/frontend/src/i18n/locales/it.json
@@ -1570,14 +1570,9 @@
"dockerNotAvailable": "Docker Non disponibile",
"ensureDockerDesktopIsInstalledAnd": "Assicurarsi che il desktop Docker sia installato e in esecuzione",
"images": "Immagini",
- "inventory": "Inventario",
- "maintenance": "Manutenzione",
"networks": "Reti",
"onLinuxMakeSureTheDocker": "Su Linux, assicurati che il demone Docker sia avviato",
- "resources": "Risorse",
"retryConnection": "Riprovare la connessione",
- "running": "Corsa",
- "stopped": "Fermato",
"targets": "Obiettivi",
"toUseDockerManagement": "Per utilizzare la gestione Docker:",
"verifyTheUserHasPermissionsTo": "Verificare che l'utente disponga delle autorizzazioni per accedere a Docker",
diff --git a/frontend/src/i18n/locales/ko.json b/frontend/src/i18n/locales/ko.json
index 1d03eb30..6ef51dfe 100644
--- a/frontend/src/i18n/locales/ko.json
+++ b/frontend/src/i18n/locales/ko.json
@@ -1570,14 +1570,9 @@
"dockerNotAvailable": "도커를 사용할 수 없음",
"ensureDockerDesktopIsInstalledAnd": "Docker Desktop이 설치되어 실행 중인지 확인하세요.",
"images": "이미지",
- "inventory": "인벤토리",
- "maintenance": "유지보수",
"networks": "네트워크",
"onLinuxMakeSureTheDocker": "Linux에서는 Docker 데몬이 시작되었는지 확인하세요.",
- "resources": "자원",
"retryConnection": "연결 재시도",
- "running": "달리기",
- "stopped": "중지됨",
"targets": "대상",
"toUseDockerManagement": "Docker 관리를 사용하려면:",
"verifyTheUserHasPermissionsTo": "사용자에게 Docker에 액세스할 수 있는 권한이 있는지 확인",
diff --git a/frontend/src/i18n/locales/pl.json b/frontend/src/i18n/locales/pl.json
index fcb4bd00..a6c7c947 100644
--- a/frontend/src/i18n/locales/pl.json
+++ b/frontend/src/i18n/locales/pl.json
@@ -1570,14 +1570,9 @@
"dockerNotAvailable": "Docker Niedostępne",
"ensureDockerDesktopIsInstalledAnd": "Upewnij się, że Docker Desktop jest zainstalowany i uruchomiony",
"images": "Obrazy",
- "inventory": "Spis",
- "maintenance": "Konserwacja",
"networks": "Sieci",
"onLinuxMakeSureTheDocker": "W przypadku Linux upewnij się, że demon Docker jest uruchomiony",
- "resources": "Zasoby",
"retryConnection": "Ponów próbę połączenia",
- "running": "Działanie",
- "stopped": "Zatrzymany",
"targets": "Cele",
"toUseDockerManagement": "Aby skorzystać z zarządzania Docker:",
"verifyTheUserHasPermissionsTo": "Sprawdź, czy użytkownik ma uprawnienia dostępu do Docker",
diff --git a/frontend/src/i18n/locales/pt.json b/frontend/src/i18n/locales/pt.json
index f7f70af1..d6a2fc52 100644
--- a/frontend/src/i18n/locales/pt.json
+++ b/frontend/src/i18n/locales/pt.json
@@ -1570,14 +1570,9 @@
"dockerNotAvailable": "Docker não disponível",
"ensureDockerDesktopIsInstalledAnd": "Certifique-se de que o Docker Desktop esteja instalado e em execução",
"images": "Imagens",
- "inventory": "Inventário",
- "maintenance": "Manutenção",
"networks": "Redes",
"onLinuxMakeSureTheDocker": "No Linux, certifique-se de que o daemon Docker esteja iniciado",
- "resources": "Recursos",
"retryConnection": "Tentar novamente a conexão",
- "running": "Correndo",
- "stopped": "Parado",
"targets": "Alvos",
"toUseDockerManagement": "Para usar o gerenciamento do Docker:",
"verifyTheUserHasPermissionsTo": "Verifique se o usuário tem permissões para acessar o Docker",
diff --git a/frontend/src/i18n/locales/ru.json b/frontend/src/i18n/locales/ru.json
index 8d42fb6c..ea06de42 100644
--- a/frontend/src/i18n/locales/ru.json
+++ b/frontend/src/i18n/locales/ru.json
@@ -1570,14 +1570,9 @@
"dockerNotAvailable": "Docker недоступен",
"ensureDockerDesktopIsInstalledAnd": "Убедитесь, что Docker Desktop установлен и работает.",
"images": "Образы",
- "inventory": "Инвентарь",
- "maintenance": "Обслуживание",
"networks": "Сети",
"onLinuxMakeSureTheDocker": "В Linux убедитесь, что демон Docker запущен.",
- "resources": "Ресурсы",
"retryConnection": "Повторить попытку подключения",
- "running": "Работает",
- "stopped": "Остановлено",
"targets": "Цели",
"toUseDockerManagement": "Чтобы использовать управление Docker:",
"verifyTheUserHasPermissionsTo": "Убедитесь, что у пользователя есть разрешения на доступ к Docker.",
diff --git a/frontend/src/i18n/locales/th.json b/frontend/src/i18n/locales/th.json
index ae406ccd..cf7ad29c 100644
--- a/frontend/src/i18n/locales/th.json
+++ b/frontend/src/i18n/locales/th.json
@@ -1570,14 +1570,9 @@
"dockerNotAvailable": "Docker ไม่มีข้อมูล",
"ensureDockerDesktopIsInstalledAnd": "ตรวจสอบให้แน่ใจว่า Docker Desktop ได้รับการติดตั้งและใช้งานอยู่",
"images": "รูปภาพ",
- "inventory": "รายการสิ่งของ",
- "maintenance": "การซ่อมบำรุง",
"networks": "เครือข่าย",
"onLinuxMakeSureTheDocker": "บน Linux ตรวจสอบให้แน่ใจว่า Docker daemon เริ่มทำงานแล้ว",
- "resources": "ทรัพยากร",
"retryConnection": "ลองเชื่อมต่ออีกครั้ง",
- "running": "วิ่ง",
- "stopped": "หยุดแล้ว",
"targets": "เป้าหมาย",
"toUseDockerManagement": "หากต้องการใช้การจัดการ Docker:",
"verifyTheUserHasPermissionsTo": "ตรวจสอบว่าผู้ใช้มีสิทธิ์ในการเข้าถึง Docker",
diff --git a/frontend/src/i18n/locales/tr.json b/frontend/src/i18n/locales/tr.json
index bfc6a83b..827827fc 100644
--- a/frontend/src/i18n/locales/tr.json
+++ b/frontend/src/i18n/locales/tr.json
@@ -1570,14 +1570,9 @@
"dockerNotAvailable": "Docker Mevcut Değil",
"ensureDockerDesktopIsInstalledAnd": "Docker Masaüstünün kurulu ve çalışır durumda olduğundan emin olun",
"images": "Görseller",
- "inventory": "Envanter",
- "maintenance": "Bakım",
"networks": "Ağlar",
"onLinuxMakeSureTheDocker": "Linux'de Docker arka plan programının başlatıldığından emin olun",
- "resources": "Kaynaklar",
"retryConnection": "Bağlantıyı Yeniden Dene",
- "running": "Koşma",
- "stopped": "Durduruldu",
"targets": "Hedefler",
"toUseDockerManagement": "Docker yönetimini kullanmak için:",
"verifyTheUserHasPermissionsTo": "Kullanıcının Docker'ye erişim izinleri olduğunu doğrulayın",
diff --git a/frontend/src/i18n/locales/vi.json b/frontend/src/i18n/locales/vi.json
index a7354e62..8a2278b4 100644
--- a/frontend/src/i18n/locales/vi.json
+++ b/frontend/src/i18n/locales/vi.json
@@ -1570,14 +1570,9 @@
"dockerNotAvailable": "Docker Không có sẵn",
"ensureDockerDesktopIsInstalledAnd": "Đảm bảo Máy tính để bàn Docker đã được cài đặt và chạy",
"images": "Hình ảnh",
- "inventory": "Hàng tồn kho",
- "maintenance": "BẢO TRÌ",
"networks": "Mạng",
"onLinuxMakeSureTheDocker": "Trên Linux, hãy đảm bảo daemon Docker được khởi động",
- "resources": "Tài nguyên",
"retryConnection": "Thử lại kết nối",
- "running": "Đang chạy",
- "stopped": "Đã dừng",
"targets": "Mục tiêu",
"toUseDockerManagement": "Để sử dụng quản lý Docker:",
"verifyTheUserHasPermissionsTo": "Xác minh người dùng có quyền truy cập Docker",
diff --git a/frontend/src/i18n/locales/zh-Hans.json b/frontend/src/i18n/locales/zh-Hans.json
index 84068912..6602f04d 100644
--- a/frontend/src/i18n/locales/zh-Hans.json
+++ b/frontend/src/i18n/locales/zh-Hans.json
@@ -1570,14 +1570,9 @@
"dockerNotAvailable": "Docker 不可用",
"ensureDockerDesktopIsInstalledAnd": "确保 Docker Desktop 已安装并正在运行",
"images": "镜像",
- "inventory": "存货",
- "maintenance": "维护",
"networks": "网络",
"onLinuxMakeSureTheDocker": "在 Linux 上,确保 Docker 守护进程已启动",
- "resources": "资源",
"retryConnection": "重试连接",
- "running": "运行中",
- "stopped": "已停止",
"targets": "目标",
"toUseDockerManagement": "使用 Docker 管理:",
"verifyTheUserHasPermissionsTo": "验证用户是否有访问Docker的权限",
diff --git a/frontend/src/i18n/locales/zh-Hant.json b/frontend/src/i18n/locales/zh-Hant.json
index 0f4f9014..3b3961e1 100644
--- a/frontend/src/i18n/locales/zh-Hant.json
+++ b/frontend/src/i18n/locales/zh-Hant.json
@@ -1757,14 +1757,9 @@
"dockerNotAvailable": "Docker 不可用",
"ensureDockerDesktopIsInstalledAnd": "請確認 Docker Desktop 已安裝且正在執行",
"images": "映像檔",
- "inventory": "資源清單",
- "maintenance": "維護",
"networks": "網路",
"onLinuxMakeSureTheDocker": "在 Linux 上,確保 Docker 守護程式已啟動",
- "resources": "資源",
"retryConnection": "重試連線",
- "running": "執行中",
- "stopped": "已停止",
"targets": "目標",
"toUseDockerManagement": "使用 Docker 管理:",
"verifyTheUserHasPermissionsTo": "驗證使用者是否有權限存取 Docker",
diff --git a/frontend/src/layouts/DashboardLayout.jsx b/frontend/src/layouts/DashboardLayout.jsx
index 19911af3..43526ad9 100644
--- a/frontend/src/layouts/DashboardLayout.jsx
+++ b/frontend/src/layouts/DashboardLayout.jsx
@@ -29,7 +29,7 @@ import GlobalStatusBar from '../components/GlobalStatusBar';
// The Automations extension (tramo) contributes /automations/edit/:slug with
// layout:'full', so it's picked up dynamically via fullPagePaths below.
-const FULL_PAGE_ROUTES = ['/files', '/docker'];
+const FULL_PAGE_ROUTES = ['/files'];
const DashboardLayout = () => {
const { t } = useTranslation();
diff --git a/frontend/src/pages/Docker.jsx b/frontend/src/pages/Docker.jsx
index 8eb84085..8a8d53f1 100644
--- a/frontend/src/pages/Docker.jsx
+++ b/frontend/src/pages/Docker.jsx
@@ -5,9 +5,10 @@ import EmptyState from '../components/EmptyState';
import { Button } from '@/components/ui/button';
import { MetricCard, KpiBand } from '@/components/ds';
import {
- Box, Layers, HardDrive, Network as NetworkIcon,
- Trash2, Activity, Package, Server as ServerIcon,
-} from 'lucide-react';
+ Select, SelectTrigger, SelectContent, SelectItem, SelectValue,
+} from '@/components/ui/select';
+import PageLayout from '@/layouts/PageLayout';
+import { Box, Layers, HardDrive, Network as NetworkIcon, Package } from 'lucide-react';
import {
ServerContext,
VALID_TABS,
@@ -25,7 +26,7 @@ import { useTranslation } from 'react-i18next';
const Docker = () => {
const { t } = useTranslation();
- const [activeTab, setActiveTab] = useTabParam('/docker', VALID_TABS);
+ const [activeTab] = useTabParam('/docker', VALID_TABS);
const [dockerStatus, setDockerStatus] = useState(null);
const [loading, setLoading] = useState(true);
const [selectedServer, setSelectedServer] = useState(LOCAL_DOCKER_TARGET);
@@ -170,11 +171,9 @@ const Docker = () => {
return <EmptyState loading loadingVariant="table" title={t('app.docker.checkingDockerStatus', 'Checking Docker status…')} />;
}
- // No page header here: the unavailable panel below is its own heading, and
- // the workspace this falls back from carries no top bar either.
if (!dockerStatus?.installed) {
return (
- <div className="page-container docker-page">
+ <PageLayout className="docker-page" icon={<Box size={18} />} title={t('common.labels.docker', 'Docker')}>
<div className="docker-unavailable">
<div className="docker-unavailable-icon">
<svg viewBox="0 0 24 24" width="64" height="64" stroke="currentColor" fill="none" strokeWidth="1">
@@ -209,19 +208,18 @@ const Docker = () => {
{t('app.docker.retryConnection', 'Retry Connection')}
</Button>
</div>
- </div>
+ </PageLayout>
);
}
const tabs = [
- { id: 'containers', labelKey: 'app.docker.containers', label: 'Containers', icon: Box, count: stats.containers.total },
- { id: 'compose', labelKey: 'app.docker.compose', label: 'Compose', icon: Package, count: null },
- { id: 'images', labelKey: 'app.docker.images', label: 'Images', icon: Layers, count: stats.images.total },
- { id: 'volumes', labelKey: 'app.docker.volumes', label: 'Volumes', icon: HardDrive, count: stats.volumes.total },
- { id: 'networks', labelKey: 'app.docker.networks', label: 'Networks', icon: NetworkIcon, count: stats.networks.total }
- ];
+ { id: 'containers', label: t('app.docker.containers', 'Containers'), icon: Box },
+ { id: 'compose', label: t('app.docker.compose', 'Compose'), icon: Package },
+ { id: 'images', label: t('app.docker.images', 'Images'), icon: Layers },
+ { id: 'volumes', label: t('app.docker.volumes', 'Volumes'), icon: HardDrive },
+ { id: 'networks', label: t('app.docker.networks', 'Networks'), icon: NetworkIcon },
+ ].map(({ id, label, icon: Icon }) => ({ to: `/docker/${id}`, label, icon: <Icon size={15} /> }));
- const activeTabMeta = tabs.find(tab => tab.id === activeTab) || tabs[0];
const hasMultipleTargets = availableServers.length > 1;
const serverContextValue = {
@@ -233,125 +231,61 @@ const Docker = () => {
return (
<RequiresDocker what="Container management">
<ServerContext.Provider value={serverContextValue}>
- <div className="page-container page-container--full-bleed docker-page-new dx-page">
- <div className="dx-workspace">
- <aside className="dx-docker-sidebar">
+ <PageLayout
+ className="docker-page"
+ contentClassName="dx-page"
+ fill
+ icon={<Box size={18} />}
+ title={t('common.labels.docker', 'Docker')}
+ tabs={tabs}
+ actions={(
+ <>
{hasMultipleTargets && (
- <section className="dx-sidebar-section">
- <div className="dx-sidebar-section-header">
- <ServerIcon size={14} />
- <span>{t('app.docker.targets', 'Targets')}</span>
- </div>
- <div className="dx-resource-nav">
+ <Select
+ value={String(selectedServer.id)}
+ onValueChange={(id) => setSelectedServer(
+ availableServers.find(server => String(server.id) === id) || LOCAL_DOCKER_TARGET
+ )}
+ >
+ <SelectTrigger className="dx-target-select" aria-label={t('app.docker.targets', 'Targets')}>
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
{availableServers.map(server => (
- <Button variant="unstyled" type="button"
- key={server.id}
- className={`dx-resource-nav-item ${selectedServer.id === server.id ? 'active' : ''}`}
- onClick={() => setSelectedServer(server)}
- >
- <ServerIcon size={15} />
- <span>{server.name || server.hostname || server.id}</span>
- <strong>{server.status || 'online'}</strong>
- </Button>
+ <SelectItem key={server.id} value={String(server.id)}>
+ {server.name || server.hostname || server.id}
+ </SelectItem>
))}
- </div>
- </section>
+ </SelectContent>
+ </Select>
)}
+ <PruneButton onPruned={loadStats} />
+ {activeTab === 'containers' && <RunContainerButton />}
+ {activeTab === 'images' && <PullImageButton />}
+ {activeTab === 'networks' && <CreateNetworkButton />}
+ {activeTab === 'volumes' && <CreateVolumeButton />}
+ </>
+ )}
+ >
+ <KpiBand>
+ <MetricCard tone="accent" icon={<Box size={16} />} value={stats.containers.total} label={t('app.docker.containers', 'Containers')}>
+ <div className="sk-kpi__sub"><span>{stats.containers.running} running</span></div>
+ </MetricCard>
+ <MetricCard tone="cyan" icon={<Layers size={16} />} value={stats.images.total} label={t('app.docker.images', 'Images')}>
+ <div className="sk-kpi__sub"><span>{stats.images.size}</span></div>
+ </MetricCard>
+ <MetricCard tone="violet" icon={<HardDrive size={16} />} value={stats.volumes.total} label={t('app.docker.volumes', 'Volumes')} />
+ <MetricCard tone="green" icon={<NetworkIcon size={16} />} value={stats.networks.total} label={t('app.docker.networks', 'Networks')} />
+ </KpiBand>
- <section className="dx-sidebar-section">
- <div className="dx-sidebar-section-header">
- <Box size={14} />
- <span>{t('app.docker.resources', 'Resources')}</span>
- </div>
- <div className="dx-resource-nav">
- {tabs.map(tab => {
- const Icon = tab.icon;
- return (
- <Button variant="unstyled" type="button"
- key={tab.id}
- className={`dx-resource-nav-item ${activeTab === tab.id ? 'active' : ''}`}
- onClick={() => setActiveTab(tab.id)}
- >
- <Icon size={15} />
- <span>{tab.label}</span>
- {tab.count !== null && <strong>{tab.count}</strong>}
- </Button>
- );
- })}
- </div>
- </section>
-
- <section className="dx-sidebar-section">
- <div className="dx-sidebar-section-header">
- <Activity size={14} />
- <span>{t('app.docker.inventory', 'Inventory')}</span>
- </div>
- <div className="dx-inventory-list">
- <div className="dx-inventory-item">
- <span>{t('app.docker.running', 'Running')}</span>
- <strong>{stats.containers.running}</strong>
- </div>
- <div className="dx-inventory-item">
- <span>{t('app.docker.stopped', 'Stopped')}</span>
- <strong>{stats.containers.stopped}</strong>
- </div>
- <div className="dx-inventory-item">
- <span>{t('app.docker.images', 'Images')}</span>
- <strong>{stats.images.size}</strong>
- </div>
- <div className="dx-inventory-item">
- <span>{t('app.docker.volumes', 'Volumes')}</span>
- <strong>{stats.volumes.total}</strong>
- </div>
- </div>
- </section>
-
- <section className="dx-sidebar-section">
- <div className="dx-sidebar-section-header">
- <Trash2 size={14} />
- <span>{t('app.docker.maintenance', 'Maintenance')}</span>
- </div>
- <div className="dx-sidebar-section-content">
- <PruneButton onPruned={loadStats} />
- </div>
- </section>
- </aside>
-
- <main className="dx-main">
- <KpiBand>
- <MetricCard tone="accent" icon={<Box size={16} />} value={stats.containers.total} label={t('app.docker.containers', 'Containers')}>
- <div className="sk-kpi__sub"><span>{stats.containers.running} running</span></div>
- </MetricCard>
- <MetricCard tone="cyan" icon={<Layers size={16} />} value={stats.images.total} label={t('app.docker.images', 'Images')}>
- <div className="sk-kpi__sub"><span>{stats.images.size}</span></div>
- </MetricCard>
- <MetricCard tone="violet" icon={<HardDrive size={16} />} value={stats.volumes.total} label={t('app.docker.volumes', 'Volumes')} />
- <MetricCard tone="green" icon={<NetworkIcon size={16} />} value={stats.networks.total} label={t('app.docker.networks', 'Networks')} />
- </KpiBand>
- <div className="dx-workbar">
- <div className="dx-workbar-title">
- <span>{t('common.labels.docker', 'Docker')}</span>
- <strong>{activeTabMeta.label}</strong>
- {hasMultipleTargets && <em>{selectedServer.name || selectedServer.id}</em>}
- </div>
- <div className="dx-workbar-actions">
- {activeTab === 'containers' && <RunContainerButton />}
- {activeTab === 'images' && <PullImageButton />}
- {activeTab === 'networks' && <CreateNetworkButton />}
- {activeTab === 'volumes' && <CreateVolumeButton />}
- </div>
- </div>
-
- <div className="dx-panel">
- {activeTab === 'containers' && <ContainersTab onStatsChange={loadStats} />}
- {activeTab === 'compose' && <ComposeTab onStatsChange={loadStats} />}
- {activeTab === 'images' && <ImagesTab onStatsChange={loadStats} />}
- {activeTab === 'networks' && <NetworksTab onStatsChange={loadStats} />}
- {activeTab === 'volumes' && <VolumesTab onStatsChange={loadStats} />}
- </div>
- </main>
+ <div className="dx-panel">
+ {activeTab === 'containers' && <ContainersTab onStatsChange={loadStats} />}
+ {activeTab === 'compose' && <ComposeTab onStatsChange={loadStats} />}
+ {activeTab === 'images' && <ImagesTab onStatsChange={loadStats} />}
+ {activeTab === 'networks' && <NetworksTab onStatsChange={loadStats} />}
+ {activeTab === 'volumes' && <VolumesTab onStatsChange={loadStats} />}
</div>
- </div>
+ </PageLayout>
</ServerContext.Provider>
</RequiresDocker>
);
diff --git a/frontend/src/routes/routeManifest.js b/frontend/src/routes/routeManifest.js
index c1bd249a..fbd60ac2 100644
--- a/frontend/src/routes/routeManifest.js
+++ b/frontend/src/routes/routeManifest.js
@@ -53,7 +53,7 @@ export const CORE_ROUTES = Object.freeze([
{ id: 'legacy-dynamic-dns', path: '/dynamic-dns', placement: 'dashboard', redirect: '/domains', titleKey: 'app.routeManifest.dynamicDns', title: 'Dynamic DNS' },
{ id: 'databases', path: '/databases', placement: 'dashboard', component: 'Databases', titleKey: 'common.labels.databases', title: 'Databases' },
{ id: 'databases-tab', path: '/databases/:tab', placement: 'dashboard', component: 'Databases', titleKey: 'common.labels.databases', title: 'Databases' },
- { id: 'docker', path: '/docker', placement: 'dashboard', component: 'Docker', titleKey: 'common.labels.docker', title: 'Docker' },
+ { id: 'docker', path: '/docker', placement: 'dashboard', redirect: '/docker/containers', titleKey: 'common.labels.docker', title: 'Docker' },
{ id: 'docker-tab', path: '/docker/:tab', placement: 'dashboard', component: 'Docker', titleKey: 'common.labels.docker', title: 'Docker' },
{ id: 'servers', path: '/servers', placement: 'dashboard', group: 'servers', component: 'Servers', titleKey: 'common.labels.servers', title: 'Servers' },
diff --git a/frontend/src/styles/pages/_docker.scss b/frontend/src/styles/pages/_docker.scss
index 94897d05..02205e59 100644
--- a/frontend/src/styles/pages/_docker.scss
+++ b/frontend/src/styles/pages/_docker.scss
@@ -2,205 +2,6 @@
// DOCKER PAGE - NEW DESIGN
// ============================================
-// Page Layout
-.docker-page-new {
- padding: 0;
-}
-
-.docker-page-title {
- h2 {
- font-size: $font-size-xl;
- font-weight: $font-weight-semibold;
- color: $text-primary;
- margin: 0;
- }
-}
-
-.docker-page-subtitle {
- color: $text-secondary;
- font-size: $font-size-sm;
- margin-top: $space-1;
-}
-
-.docker-page-actions {
- display: flex;
- align-items: center;
- gap: $space-3;
-}
-
-// Docker-specific server-selector spacing (base styles in components/_server-selector)
-.docker-page-actions .server-selector {
- margin-right: $space-2;
-}
-
-// Stats Row
-.docker-stats-row {
- display: grid;
- grid-template-columns: repeat(4, 1fr);
- gap: $space-4;
- margin-bottom: $space-6;
-
- @media (max-width: $breakpoint-lg) {
- grid-template-columns: repeat(2, 1fr);
- }
-
- @media (max-width: $breakpoint-sm) {
- grid-template-columns: 1fr;
- }
-}
-
-.docker-stat-card {
- background: $bg-card;
- border: 1px solid $border-subtle;
- border-radius: $radius-md;
- padding: $space-5;
-}
-
-.docker-stat-label {
- font-size: $font-size-xs;
- font-weight: $font-weight-semibold;
- text-transform: uppercase;
- color: $text-tertiary;
- margin-bottom: $space-2;
- letter-spacing: 0.05em;
-}
-
-.docker-stat-value {
- font-family: $font-mono;
- font-size: $font-size-2xl;
- font-weight: $font-weight-bold;
- color: $text-primary;
-}
-
-.docker-stat-meta {
- font-size: $font-size-xs;
- color: $text-tertiary;
- margin-top: $space-1;
- display: flex;
- align-items: center;
- gap: $space-3;
-}
-
-.docker-stat-running {
- color: $success;
-
- &::before {
- content: '';
- display: inline-block;
- width: 6px;
- height: 6px;
- background: $success;
- border-radius: 50%;
- margin-right: $space-1;
- }
-}
-
-.docker-stat-stopped {
- color: $text-tertiary;
-
- &::before {
- content: '';
- display: inline-block;
- width: 6px;
- height: 6px;
- background: $text-tertiary;
- border-radius: 50%;
- margin-right: $space-1;
- }
-}
-
-// Panel
-.docker-panel {
- background: $bg-card;
- border: 1px solid $border-subtle;
- border-radius: $radius-md;
- overflow: hidden;
-}
-
-.docker-panel-header {
- padding: $space-4 $space-5;
- border-bottom: 1px solid $border-subtle;
- display: flex;
- justify-content: space-between;
- align-items: center;
-}
-
-.docker-panel-tabs {
- display: flex;
- gap: $space-6;
-}
-
-.docker-panel-tab {
- color: $text-tertiary;
- font-size: $font-size-sm;
- font-weight: $font-weight-medium;
- cursor: pointer;
- padding-bottom: $space-1;
- border-bottom: 2px solid transparent;
- transition: all 0.2s;
-
- &:hover {
- color: $text-primary;
- }
-
- &.active {
- color: $text-primary;
- border-color: $accent-primary;
- }
-}
-
-.docker-panel-actions {
- display: flex;
- gap: $space-2;
-}
-
-.docker-panel-content {
- // Content area - no padding needed, tabs handle their own
-}
-
-// The hand-rolled `.docker-table` markup and its cell/pill/toolbar styles are
-// gone: every Docker tab renders through <DataTable> under .dx-manager-table
-// now, and each one carries its own chrome row instead of a bespoke toolbar.
-
-// Resource Bars
-.docker-res-container {
- display: flex;
- align-items: center;
- gap: $space-2;
- font-size: $font-size-xs;
- color: $text-tertiary;
- margin-bottom: $space-1;
-
- &:last-child {
- margin-bottom: 0;
- }
-}
-
-.docker-res-label {
- width: 28px;
- flex-shrink: 0;
-}
-
-.docker-res-track {
- width: 50px;
- height: 4px;
- background: $bg-hover;
- border-radius: 2px;
- overflow: hidden;
-}
-
-.docker-res-fill {
- height: 100%;
- border-radius: 2px;
- transition: width 0.3s ease;
-}
-
-.docker-res-value {
- width: 32px;
- text-align: right;
- font-family: $font-mono;
-}
-
.faded {
opacity: 0.3;
}
@@ -230,81 +31,6 @@
color: $text-secondary;
}
-// ============================================
-// LEGACY STYLES (keep for Docker unavailable state)
-// ============================================
-
-.docker-list {
- @include flex-column-gap($space-3);
-}
-
-.docker-item {
- @include list-item-base();
-}
-
-.docker-item-info {
- @include flex-start();
- gap: $space-4;
- flex: 1;
- min-width: 0;
-}
-
-.docker-item-icon {
- @include icon-box();
- background: $bg-hover;
- border-radius: $radius-lg;
- color: $color-docker;
-
- &.image-icon {
- color: $violet; // Purple for images
- }
-
- &.network-icon {
- color: $success; // Green for networks
- }
-
- &.volume-icon {
- color: $warning; // Yellow for volumes
- }
-}
-
-.docker-item-details {
- min-width: 0;
-
- h3 {
- font-size: $font-size-base;
- font-weight: $font-weight-semibold;
- color: $text-primary;
- margin-bottom: $space-1;
- @include truncate();
- }
-}
-
-.docker-item-meta {
- @include flex-start();
- gap: $space-3;
- font-size: $font-size-sm;
- color: $text-tertiary;
- flex-wrap: wrap;
-
- .mono {
- @include mono-text();
- background: $bg-hover;
- padding: $space-1 - 2 $space-2 - 2;
- border-radius: $radius-sm;
- }
-}
-
-.docker-item-status {
- flex-shrink: 0;
-}
-
-.docker-item-actions {
- display: flex;
- gap: $space-2;
- flex-shrink: 0;
-}
-
// Container Exec Modal
.exec-modal-body {
display: flex;
@@ -415,17 +141,6 @@
}
// Docker Unavailable State
-.docker-page {
- // /docker is a full-page route, so .main-content drops its padding. Unlike
- // the workspace branch, this state has no shell of its own, so restore the
- // standard route padding or the header sits flush against the viewport top.
- padding: $space-10;
-
- @media (max-width: $breakpoint-md) {
- padding: $space-5;
- }
-}
-
.docker-unavailable {
display: flex;
flex-direction: column;
@@ -532,16 +247,18 @@
// ============================================
// DOCKER REDESIGN (dx-*)
// ============================================
+// Fill body of the Docker PageLayout: the list and the container inspector
+// scroll on their own, so the page itself is a fixed-height column.
.dx-page {
+ height: 100%;
display: flex;
flex-direction: column;
gap: $space-3;
+ padding: $space-5;
}
-.dx-stats-row {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
- gap: $space-3;
+.dx-target-select {
+ min-width: 160px;
}
.dx-stat {
@@ -560,96 +277,6 @@
box-shadow: $shadow-md;
}
- &[data-kind='containers'] .dx-stat-icon { color: $info; background: fade($info-raw, 12%); }
- &[data-kind='images'] .dx-stat-icon { color: $violet; background: fade($violet, 12%); }
- &[data-kind='volumes'] .dx-stat-icon { color: $success; background: fade($success-raw, 12%); }
- &[data-kind='networks'] .dx-stat-icon { color: $warning; background: fade($warning-raw, 12%); }
-}
-
-.dx-stat-icon {
- width: 40px;
- height: 40px;
- border-radius: $radius-md;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
-}
-
-.dx-stat-body {
- display: flex;
- flex-direction: column;
- gap: 2px;
- min-width: 0;
- flex: 1;
-}
-
-.dx-stat-label {
- font-size: 9px;
- font-weight: $font-weight-semibold;
- color: $text-tertiary;
- text-transform: uppercase;
- letter-spacing: 0.06em;
-}
-
-.dx-stat-value {
- font-size: $font-size-2xl;
- font-weight: $font-weight-semibold;
- color: $text-primary;
- line-height: 1;
-}
-
-.dx-stat-meta {
- display: flex;
- gap: $space-2;
- margin-top: 2px;
- flex-wrap: wrap;
-}
-
-.dx-stat-sub {
- font-size: $font-size-xs;
- color: $text-tertiary;
-}
-
-.dx-pill {
- display: inline-flex;
- align-items: center;
- gap: 4px;
- padding: 1px 7px;
- border-radius: $radius-full;
- font-size: 10px;
- font-weight: $font-weight-medium;
- background: $bg-tertiary;
- color: $text-secondary;
-
- .dot {
- width: 6px;
- height: 6px;
- border-radius: 50%;
- background: $text-tertiary;
- }
-
- &.running {
- background: fade($success-raw, 12%);
- color: $success;
- .dot { background: $success; }
- }
- &.stopped {
- background: $bg-tertiary;
- color: $text-tertiary;
- }
-}
-
-// ─── Tabs (replaces docker-panel-tabs) ──────────
-.dx-tabs {
- display: flex;
- gap: $space-1;
- padding: 4px;
- background: $bg-card;
- border: 1px solid $border-default;
- border-radius: $radius-lg;
- overflow-x: auto;
- scrollbar-width: thin;
}
.dx-tab {
@@ -683,77 +310,6 @@
padding: $space-3;
}
-.dx-tab-toolbar {
- display: flex;
- justify-content: space-between;
- align-items: center;
- gap: $space-3;
- padding-bottom: $space-3;
- margin-bottom: $space-3;
- border-bottom: 1px solid $border-subtle;
- flex-wrap: wrap;
-}
-
-.dx-tab-toolbar-right {
- display: flex;
- align-items: center;
- gap: $space-2;
- flex-wrap: wrap;
-}
-
-// ─── Container card grid ─────────────────────────
-.dx-container-grid {
- display: grid;
- gap: $space-3;
- grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
-}
-
-.dx-container-card {
- position: relative;
- background: $bg-elevated;
- border: 1px solid $border-default;
- border-radius: $radius-lg;
- padding: $space-3 $space-4 $space-4;
- display: flex;
- flex-direction: column;
- gap: $space-2;
- cursor: pointer;
- @include transition(all);
- overflow: hidden;
-
- &.is-running { border-color: fade($success-raw, 40%); }
- &.is-stopped { border-color: $border-default; }
-
- &:hover {
- border-color: $border-hover;
- transform: translateY(-2px);
- box-shadow: $shadow-md;
- }
-}
-
-.dx-card-head {
- display: flex;
- justify-content: space-between;
- align-items: center;
- gap: $space-2;
-}
-
-.dx-card-title {
- display: flex;
- align-items: center;
- gap: $space-2;
- min-width: 0;
- flex: 1;
-
- h4 {
- margin: 0;
- font-size: $font-size-sm;
- font-weight: $font-weight-semibold;
- color: $text-primary;
- @include truncate();
- }
-}
-
.dx-status-dot {
width: 8px;
height: 8px;
@@ -779,30 +335,6 @@
&.stopped { background: $bg-tertiary; color: $text-tertiary; }
}
-.dx-card-image {
- display: flex;
- align-items: center;
- gap: 4px;
- color: $text-tertiary;
- font-family: $font-mono;
- font-size: $font-size-xs;
-
- span { @include truncate(); }
- svg { color: $violet; flex-shrink: 0; }
-}
-
-.dx-card-detail {
- font-size: $font-size-xs;
- color: $text-secondary;
- @include truncate();
-}
-
-.dx-card-ports {
- display: flex;
- flex-wrap: wrap;
- gap: 4px;
-}
-
.dx-port-pill {
display: inline-flex;
align-items: center;
@@ -826,13 +358,6 @@
color: $text-tertiary;
}
-.dx-card-resources {
- display: flex;
- flex-direction: column;
- gap: 4px;
- margin-top: $space-1;
-}
-
.dx-res {
display: grid;
grid-template-columns: 50px 1fr 50px;
@@ -840,17 +365,6 @@
align-items: center;
}
-.dx-res-label {
- display: inline-flex;
- align-items: center;
- gap: 3px;
- font-size: 10px;
- color: $text-tertiary;
- text-transform: uppercase;
- letter-spacing: 0.04em;
- font-weight: $font-weight-semibold;
-}
-
.dx-res-track {
height: 4px;
background: $border-default;
@@ -866,34 +380,9 @@
&.mem { background: $success; }
}
-.dx-res-value {
- text-align: right;
- font-family: $font-mono;
- font-size: 10px;
- color: $text-secondary;
-}
-
-.dx-card-actions {
- display: flex;
- gap: $space-1;
- flex-wrap: wrap;
- padding-top: $space-2;
- margin-top: auto;
- border-top: 1px solid $border-subtle;
-}
-
// Full-width manager shell
-.docker-page-new.dx-page {
- height: 100vh;
- min-height: 0;
- padding: $space-5;
- overflow: hidden;
-
- .lv-header,
- .dx-stats-row,
- .dx-tabs {
- flex-shrink: 0;
- }
+.dx-page > .sk-kpiband-wrap {
+ flex-shrink: 0;
}
.dx-panel {
@@ -905,142 +394,32 @@
.dx-panel > div {
min-height: 0;
- overflow: auto;
-}
-
-.dx-panel > .dx-tab-pane {
- overflow: hidden;
-}
-
-.dx-containers-pane {
- flex: 1;
- min-height: 0;
- display: flex;
- flex-direction: column;
-}
-
-// Images · Volumes · Networks · Compose. Same shape as the containers pane,
-// minus the inspector column: the chrome row stays put and the table scrolls.
-.dx-list-pane {
- flex: 1;
- min-height: 0;
- display: flex;
- flex-direction: column;
-
- .dx-resource-list {
- flex: 1;
- min-height: 0;
- margin-top: $space-3;
- }
-}
-
-// Status filter rendered as a segmented control (redesign seg look).
-.dx-filter-chips {
- display: inline-flex;
- align-items: center;
- gap: 2px;
- flex-wrap: wrap;
- background: var(--surface-2);
- border: 1px solid var(--border);
- border-radius: 9px;
- padding: 3px;
-
- .filter-chip {
- display: inline-flex;
- align-items: center;
- gap: $space-2;
- min-height: 28px;
- padding: 0 $space-3;
- border: 1px solid transparent;
- border-radius: 6px;
- background: transparent;
- color: $text-tertiary;
- font-size: $font-size-xs;
- font-weight: $font-weight-medium;
- cursor: pointer;
- @include transition(all);
-
- &:hover:not(:disabled) { color: $text-primary; }
-
- &.active {
- background: var(--surface-3);
- color: $text-primary;
- box-shadow: var(--shadow-sm);
- }
-
- &:disabled {
- opacity: 0.45;
- cursor: not-allowed;
- }
- }
-
- .filter-chip-count {
- font-family: $font-mono;
- font-size: 10.5px;
- color: inherit;
- opacity: 0.7;
- }
-}
-
-// KPI tile strip atop the Docker content area (uses the shared .sk-kpi cards).
-.dx-kpi-strip {
- display: grid;
- grid-template-columns: repeat(4, 1fr);
- gap: $space-4;
- margin-bottom: $space-4;
+ overflow: auto;
+}
- @media (max-width: $breakpoint-lg) { grid-template-columns: repeat(2, 1fr); }
- @media (max-width: $breakpoint-sm) { grid-template-columns: 1fr; }
+.dx-panel > .dx-tab-pane {
+ overflow: hidden;
}
-.dx-search-field {
- position: relative;
+.dx-containers-pane {
+ flex: 1;
+ min-height: 0;
display: flex;
- align-items: center;
- min-width: 280px;
-
- .lv-search-field-icon {
- position: absolute;
- left: $space-3;
- color: $text-tertiary;
- pointer-events: none;
- }
-
- input {
- width: 100%;
- height: 32px;
- border: 1px solid $border-default;
- border-radius: $radius-md;
- background: $bg-elevated;
- color: $text-primary;
- padding: 0 $space-8 0 $space-8;
- font-size: $font-size-sm;
-
- &:focus {
- outline: none;
- border-color: $accent-primary;
- box-shadow: 0 0 0 2px $accent-glow;
- }
- }
+ flex-direction: column;
+}
- .lv-search-field-clear {
- position: absolute;
- right: $space-2;
- width: 22px;
- height: 22px;
- border: none;
- border-radius: $radius-sm;
- background: transparent;
- color: $text-tertiary;
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
+// Images · Volumes · Networks · Compose. Same shape as the containers pane,
+// minus the inspector column: the chrome row stays put and the table scrolls.
+.dx-list-pane {
+ flex: 1;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
- &:hover {
- background: $bg-hover;
- color: $text-primary;
- }
+ .dx-resource-list {
+ flex: 1;
+ min-height: 0;
+ margin-top: $space-3;
}
}
@@ -1342,26 +721,6 @@
overflow: hidden;
}
-.dx-inspector-empty {
- align-items: center;
- justify-content: center;
- text-align: center;
- padding: $space-8;
- color: $text-secondary;
-
- h3 {
- margin: $space-3 0 $space-2;
- color: $text-primary;
- font-size: $font-size-base;
- }
-
- p {
- margin: 0;
- max-width: 260px;
- font-size: $font-size-sm;
- }
-}
-
.dx-inspector-header {
display: flex;
align-items: center;
@@ -1564,22 +923,11 @@
}
@media (max-width: $breakpoint-md) {
- .docker-page-new.dx-page {
+ .dx-page {
height: auto;
- min-height: 100vh;
- overflow: auto;
padding: $space-4;
}
- .dx-tab-toolbar,
- .dx-tab-toolbar-right {
- align-items: stretch;
- }
-
- .dx-search-field {
- min-width: 100%;
- }
-
.dx-manager-table {
min-width: 960px;
}
@@ -1590,228 +938,7 @@
}
}
-// Docker workspace polish: File Manager-style rail + click-open details drawer
-.docker-page-new.dx-page {
- // Full-bleed zeroes out .main-content's padding, and this workspace carries
- // no page bar, so without this the workbar hugs the viewport top. Give it
- // the same breathing room other routes get from .main-content.
- padding: $space-6 $space-5 $space-5;
- gap: $space-3;
- background: transparent;
-
- .lv-header,
- .dx-stats-row,
- .dx-tabs {
- display: none;
- }
-}
-
-.dx-workspace {
- flex: 1;
- min-height: 0;
- display: grid;
- grid-template-columns: 252px minmax(0, 1fr);
- gap: $space-3;
- overflow: hidden;
-}
-
-.dx-docker-sidebar {
- display: flex;
- flex-direction: column;
- gap: $space-2;
- min-height: 0;
- overflow-y: auto;
- scrollbar-width: thin;
-
- &::-webkit-scrollbar { width: 4px; }
- &::-webkit-scrollbar-thumb { background: $border-default; border-radius: $radius-sm; }
-}
-
-.dx-sidebar-section {
- background: $bg-card;
- border: 1px solid $border-default;
- border-radius: $radius-lg;
- overflow: hidden;
- flex-shrink: 0;
-}
-
-.dx-sidebar-section-header {
- display: flex;
- align-items: center;
- gap: $space-2;
- padding: $space-3;
- background: $bg-elevated;
- border-bottom: 1px solid $border-subtle;
- color: $text-primary;
- font-size: $font-size-sm;
- font-weight: $font-weight-medium;
-
- svg {
- color: $accent-primary;
- flex-shrink: 0;
- }
-}
-
-.dx-sidebar-section-content {
- padding: $space-2;
-
- .btn,
- button {
- width: 100%;
- justify-content: center;
- }
-}
-
-.dx-resource-nav {
- display: grid;
- gap: 2px;
- padding: $space-2;
-}
-
-.dx-resource-nav-item {
- display: grid;
- grid-template-columns: 18px minmax(0, 1fr) auto;
- align-items: center;
- gap: $space-2;
- width: 100%;
- min-height: 34px;
- padding: 0 $space-2;
- border: none;
- border-radius: $radius-md;
- background: transparent;
- color: $text-secondary;
- font-size: $font-size-sm;
- text-align: left;
- cursor: pointer;
- @include transition(all);
-
- svg {
- color: $text-tertiary;
- }
-
- span {
- @include truncate();
- }
-
- strong {
- min-width: 24px;
- padding: 1px 7px;
- border-radius: $radius-full;
- background: $bg-tertiary;
- color: $text-tertiary;
- font-family: $font-mono;
- font-size: 10px;
- font-weight: $font-weight-medium;
- text-align: center;
- }
-
- &:hover {
- background: $bg-hover;
- color: $text-primary;
- }
-
- &.active {
- background: $accent-glow;
- color: $accent-primary;
-
- svg { color: $accent-primary; }
- strong {
- background: fade($accent-primary-raw, 18%);
- color: $accent-primary;
- }
- }
-}
-
-.dx-inventory-list {
- display: grid;
- gap: 1px;
- padding: $space-2;
-}
-
-.dx-inventory-item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: $space-2;
- min-height: 30px;
- padding: 0 $space-2;
- border-radius: $radius-md;
-
- span {
- color: $text-secondary;
- font-size: $font-size-xs;
- }
-
- strong {
- color: $text-primary;
- font-family: $font-mono;
- font-size: $font-size-xs;
- font-weight: $font-weight-medium;
- @include truncate();
- }
-}
-
-.dx-main {
- min-width: 0;
- min-height: 0;
- display: flex;
- flex-direction: column;
- gap: $space-2;
-}
-
-.dx-workbar {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: $space-3;
- min-height: 46px;
- padding: $space-2;
- background: $bg-card;
- border: 1px solid $border-default;
- border-radius: $radius-lg;
- flex-shrink: 0;
-}
-
-.dx-workbar-title {
- display: flex;
- align-items: baseline;
- gap: $space-2;
- min-width: 0;
-
- span {
- color: $text-tertiary;
- font-size: 10px;
- font-weight: $font-weight-semibold;
- text-transform: uppercase;
- letter-spacing: 0.06em;
- }
-
- strong {
- color: $text-primary;
- font-size: $font-size-base;
- font-weight: $font-weight-semibold;
- }
-
- em {
- color: $text-tertiary;
- font-size: $font-size-xs;
- font-style: normal;
- @include truncate();
- }
-}
-
-.dx-workbar-actions {
- display: flex;
- align-items: center;
- gap: $space-2;
- flex-wrap: wrap;
-
- .btn,
- button {
- min-height: 32px;
- }
-}
-
+// Docker panel: tables and the inspector sit on the page surface
.dx-panel {
flex: 1;
min-height: 0;
@@ -1829,18 +956,6 @@
gap: $space-2;
}
-.dx-tab-toolbar {
- margin: 0;
- padding: $space-2;
- background: $bg-card;
- border: 1px solid $border-default;
- border-radius: $radius-lg;
-}
-
-.dx-tab-toolbar-right {
- margin-left: auto;
-}
-
.dx-manager-layout {
grid-template-columns: minmax(0, 1fr);
gap: 0;
@@ -1905,49 +1020,13 @@
}
@media (max-width: $breakpoint-xl) {
- .dx-workspace {
- grid-template-columns: 220px minmax(0, 1fr);
- }
}
@media (max-width: $breakpoint-lg) {
- .dx-workspace {
- grid-template-columns: 1fr;
- overflow: auto;
- }
-
- .dx-docker-sidebar {
- display: grid;
- grid-template-columns: repeat(2, minmax(0, 1fr));
- overflow: visible;
- }
- .dx-main {
- min-height: 620px;
- }
}
@media (max-width: $breakpoint-md) {
- .dx-docker-sidebar {
- grid-template-columns: 1fr;
- }
-
- .dx-workbar {
- align-items: stretch;
- flex-direction: column;
- }
-
- .dx-workbar-actions {
- width: 100%;
-
- > * {
- flex: 1;
- }
- }
-
- .dx-tab-toolbar-right {
- margin-left: 0;
- }
.dx-inspector-drawer {
width: 100%;