From c02606df6a2f717dc4fa01fa7a375639dd899206 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sat, 22 Nov 2025 19:27:45 +0100 Subject: [PATCH] Update Appimage --- AppImage/app/globals.css | 89 ++++++++++++++++++++------ AppImage/components/terminal-panel.tsx | 2 +- 2 files changed, 71 insertions(+), 20 deletions(-) diff --git a/AppImage/app/globals.css b/AppImage/app/globals.css index 7e0954e..bdde6ab 100644 --- a/AppImage/app/globals.css +++ b/AppImage/app/globals.css @@ -1,13 +1,11 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; +@import "tailwindcss"; +@import "tw-animate-css"; + +@custom-variant dark (&:is(.dark *)); -/* ===================== */ -/* Light Mode (default) */ -/* ===================== */ :root { - --background: oklch(1 0 0); /* blanco */ - --foreground: oklch(0.145 0 0); /* casi negro */ + --background: oklch(1 0 0); /* blanco */ + --foreground: oklch(0.145 0 0); /* casi negro */ --card: oklch(1 0 0); --card-foreground: var(--foreground); @@ -15,14 +13,14 @@ --popover: var(--card); --popover-foreground: var(--foreground); - --primary: oklch(0.205 0 0); /* gris oscuro */ - --primary-foreground: oklch(0.985 0 0); /* blanco */ + --primary: oklch(0.205 0 0); /* gris oscuro */ + --primary-foreground: oklch(0.985 0 0); /* blanco */ --secondary: oklch(0.97 0 0); --secondary-foreground: var(--primary); --muted: oklch(0.97 0 0); - --muted-foreground: oklch(0.556 0 0); /* gris medio */ + --muted-foreground: oklch(0.556 0 0); /* gris medio */ --accent: oklch(0.97 0 0); --accent-foreground: var(--primary); @@ -56,8 +54,8 @@ /* Dark Mode (gris) */ /* ===================== */ .dark { - --background: oklch(0.22 0 0); /* gris oscuro */ - --foreground: oklch(0.97 0 0); /* blanco/gris claro */ + --background: oklch(0.22 0 0); /* gris oscuro */ + --foreground: oklch(0.97 0 0); /* blanco/gris claro */ --card: oklch(0.24 0 0); --card-foreground: var(--foreground); @@ -65,7 +63,7 @@ --popover: var(--card); --popover-foreground: var(--foreground); - --primary: oklch(0.83 0 0); /* casi blanco */ + --primary: oklch(0.83 0 0); /* casi blanco */ --primary-foreground: var(--background); --secondary: oklch(0.28 0 0); @@ -84,8 +82,8 @@ --input: var(--border); --ring: oklch(0.55 0 0); - --chart-1: oklch(0.60 0.20 255); - --chart-2: oklch(0.70 0.16 165); + --chart-1: oklch(0.6 0.2 255); + --chart-2: oklch(0.7 0.16 165); --chart-3: oklch(0.76 0.19 70); --chart-4: oklch(0.63 0.25 305); --chart-5: oklch(0.66 0.24 20); @@ -100,12 +98,52 @@ --sidebar-ring: var(--ring); } +@theme inline { + /* optional: --font-sans, --font-serif, --font-mono if they are applied in the layout.tsx */ + --color-background: var(--background); + --color-foreground: var(--foreground); + --color-card: var(--card); + --color-card-foreground: var(--card-foreground); + --color-popover: var(--popover); + --color-popover-foreground: var(--popover-foreground); + --color-primary: var(--primary); + --color-primary-foreground: var(--primary-foreground); + --color-secondary: var(--secondary); + --color-secondary-foreground: var(--secondary-foreground); + --color-muted: var(--muted); + --color-muted-foreground: var(--muted-foreground); + --color-accent: var(--accent); + --color-accent-foreground: var(--accent-foreground); + --color-destructive: var(--destructive); + --color-destructive-foreground: var(--destructive-foreground); + --color-border: var(--border); + --color-input: var(--input); + --color-ring: var(--ring); + --color-chart-1: var(--chart-1); + --color-chart-2: var(--chart-2); + --color-chart-3: var(--chart-3); + --color-chart-4: var(--chart-4); + --color-chart-5: var(--chart-5); + --radius-sm: calc(var(--radius) - 4px); + --radius-md: calc(var(--radius) - 2px); + --radius-lg: var(--radius); + --radius-xl: calc(var(--radius) + 4px); + --color-sidebar: var(--sidebar); + --color-sidebar-foreground: var(--sidebar-foreground); + --color-sidebar-primary: var(--sidebar-primary); + --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); + --color-sidebar-accent: var(--sidebar-accent); + --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); + --color-sidebar-border: var(--sidebar-border); + --color-sidebar-ring: var(--sidebar-ring); +} + /* ===================== */ /* Base layer */ /* ===================== */ @layer base { * { - @apply border-border; + @apply border-border outline-ring/50; } body { @@ -113,10 +151,10 @@ } /* Foco accesible */ - :is(button,[role="button"],a,input,select,textarea,[tabindex]:not([tabindex="-1"])):focus { + :is(button, [role="button"], a, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus { @apply outline-none; } - :is(button,[role="button"],a,input,select,textarea,[tabindex]:not([tabindex="-1"])):focus-visible { + :is(button, [role="button"], a, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible { @apply ring-2; --tw-ring-color: var(--ring); --tw-ring-opacity: 0.5; /* equivalente al /50 */ @@ -143,4 +181,17 @@ .chartjs-render-monitor line { stroke: var(--border); } + + /* Eliminar padding de xterm para centrar contenido como en Proxmox real */ + .xterm { + padding: 0 !important; + } + + .xterm .xterm-viewport { + overflow-y: auto !important; + } + + .xterm .xterm-screen { + padding: 0 !important; + } } diff --git a/AppImage/components/terminal-panel.tsx b/AppImage/components/terminal-panel.tsx index 8dc8e97..4729d03 100644 --- a/AppImage/components/terminal-panel.tsx +++ b/AppImage/components/terminal-panel.tsx @@ -288,7 +288,7 @@ export const TerminalPanel: React.FC = ({ websocketUrl, onCl cursorBlink: true, scrollback: 2000, disableStdin: false, - cols: isMobile ? 40 : layout === "grid" ? 60 : 120, + cols: isMobile ? 80 : layout === "grid" ? 60 : 120, rows: isMobile ? 20 : layout === "grid" ? 15 : 30, theme: { background: "#000000",