update /system-logs.tsx

This commit is contained in:
MacRimi
2026-03-31 20:10:58 +02:00
parent 39bbc036cd
commit 65dfb9103f
5 changed files with 9 additions and 9 deletions

View File

@@ -794,7 +794,7 @@ export function SystemLogs() {
</Button>
</div>
<ScrollArea className="h-[600px] w-full rounded-md border border-border [&>div]:!max-w-full [&>div>div]:!max-w-full">
<ScrollArea className="h-[600px] w-full rounded-md border border-border overflow-hidden [&>div]:!max-w-full [&>div>div]:!max-w-full">
<div className="space-y-2 p-4 w-full min-w-0">
{displayedLogs.map((log, index) => {
// Generate a more stable unique key
@@ -806,7 +806,7 @@ export function SystemLogs() {
return (
<div
key={uniqueKey}
className="flex flex-col md:flex-row md:items-start space-y-2 md:space-y-0 md:space-x-4 p-3 rounded-lg border border-white/10 sm:border-border bg-white/5 sm:bg-card sm:hover:bg-white/5 transition-colors cursor-pointer overflow-hidden w-full min-w-0"
className="flex flex-col md:flex-row md:items-start space-y-2 md:space-y-0 md:space-x-4 p-3 rounded-lg border border-white/10 sm:border-border bg-white/5 sm:bg-card sm:hover:bg-white/5 transition-colors cursor-pointer overflow-hidden w-full max-w-full min-w-0"
onClick={() => {
if (log.eventData) {
setSelectedEvent(log.eventData)
@@ -859,7 +859,7 @@ export function SystemLogs() {
)}
{hasMoreLogs && (
<div className="flex justify-center pt-4">
<div className="flex justify-center pt-4 w-full">
<Button
variant="outline"
onClick={() => setDisplayedLogsCount((prev) => prev + 200)}

View File

@@ -855,7 +855,7 @@ def proxmox_webhook():
resp.headers['Retry-After'] = '60'
return resp, 429
# ─ Layers 2-5: Remote-only checks ──
# <EFBFBD><EFBFBD>─ Layers 2-5: Remote-only checks ──
if not is_localhost:
# Layer 2: Shared secret
try:

View File

@@ -1858,7 +1858,7 @@ class NotificationManager:
return {'checked': False, 'migrated': False, 'message': str(e)}
# ─── Singleton (for server mode) ────────────────────────────────<EFBFBD><EFBFBD><EFBFBD>
# ─── Singleton (for server mode) ────────────────────────────────
notification_manager = NotificationManager()

View File

@@ -21,7 +21,7 @@ import time
import threading
from typing import Set, List, Tuple, Optional
# ─── Configuration ───────────────────────<EFBFBD><EFBFBD><EFBFBD>───────────────────────────────────
# ─── Configuration ──────────────────────────────────────────────────────────
# Grace period durations (seconds)
STARTUP_VM_GRACE_SECONDS = 180 # 3 minutes for VM/CT start aggregation

View File

@@ -34,7 +34,7 @@ LOG_FILE="/tmp/proxmenux_real_test_$(date +%Y%m%d_%H%M%S).log"
log() { echo -e "$1" | tee -a "$LOG_FILE"; }
header() {
echo "" | tee -a "$LOG_FILE"
echo -e "${BOLD}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<EFBFBD><EFBFBD>━━━━━━━━━━━━━${NC}" | tee -a "$LOG_FILE"
echo -e "${BOLD}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}" | tee -a "$LOG_FILE"
echo -e "${BOLD} $1${NC}" | tee -a "$LOG_FILE"
echo -e "${BOLD}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}" | tee -a "$LOG_FILE"
}
@@ -91,7 +91,7 @@ for h in data.get('history', [])[:$diff]:
fi
}
# ── Pre-flight checks ─────────────────────────────────────────
# ── Pre-flight checks ──────────────────────<EFBFBD><EFBFBD><EFBFBD>───────────────────
preflight() {
header "Pre-flight Checks"
@@ -684,7 +684,7 @@ show_menu() {
echo -ne " Select: "
}
# ── Main ────────────────────────────────────────<EFBFBD><EFBFBD><EFBFBD>───────────────
# ── Main ───────────────────────────────────────────────────────
main() {
local mode="${1:-menu}"