update system-logs.tsx

This commit is contained in:
MacRimi
2026-03-31 19:38:23 +02:00
parent aaf6dd36f0
commit 39bbc036cd
5 changed files with 8 additions and 8 deletions

View File

@@ -794,8 +794,8 @@ export function SystemLogs() {
</Button>
</div>
<ScrollArea className="h-[600px] w-full max-w-full rounded-md border border-border">
<div className="space-y-2 p-4 w-full max-w-full">
<ScrollArea className="h-[600px] w-full rounded-md border border-border [&>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
const timestampMs = new Date(log.timestamp).getTime()
@@ -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 max-w-full"
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"
onClick={() => {
if (log.eventData) {
setSelectedEvent(log.eventData)

View File

@@ -855,7 +855,7 @@ def proxmox_webhook():
resp.headers['Retry-After'] = '60'
return resp, 429
# <EFBFBD><EFBFBD>─ Layers 2-5: Remote-only checks ──
# ─ 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) ────────────────────────────────
# ─── Singleton (for server mode) ────────────────────────────────<EFBFBD><EFBFBD><EFBFBD>
notification_manager = NotificationManager()

View File

@@ -21,7 +21,7 @@ import time
import threading
from typing import Set, List, Tuple, Optional
# ─── Configuration ──────────────────────────────────────────────────────────
# ─── Configuration ───────────────────────<EFBFBD><EFBFBD><EFBFBD>───────────────────────────────────
# 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}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}" | tee -a "$LOG_FILE"
echo -e "${BOLD}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<EFBFBD><EFBFBD>━━━━━━━━━━━━━${NC}" | tee -a "$LOG_FILE"
echo -e "${BOLD} $1${NC}" | tee -a "$LOG_FILE"
echo -e "${BOLD}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}" | tee -a "$LOG_FILE"
}
@@ -684,7 +684,7 @@ show_menu() {
echo -ne " Select: "
}
# ── Main ───────────────────────────────────────────────────────
# ── Main ────────────────────────────────────────<EFBFBD><EFBFBD><EFBFBD>───────────────
main() {
local mode="${1:-menu}"