fix(ui): breite Tabellen der Übersicht scrollen in der Karte, Leistung ohne Warnfarbe, Testhilfe gegen 'Text file busy' (#1197)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GmHhg7qE8FdhchzsBrwgjZ
This commit is contained in:
@ -118,7 +118,7 @@ fn engine_tabelle(statuses: &[EngineStatus]) -> String {
|
||||
})
|
||||
.collect();
|
||||
format!(
|
||||
"<table><thead><tr><th>Engine</th><th>Zustand</th></tr></thead><tbody>{rows}</tbody></table>"
|
||||
"<div class=\"breit\"><table><thead><tr><th>Engine</th><th>Zustand</th></tr></thead><tbody>{rows}</tbody></table></div>"
|
||||
)
|
||||
}
|
||||
|
||||
@ -293,7 +293,7 @@ pub(super) async fn html(state: &AppState) -> String {
|
||||
}),
|
||||
kachel("GPU-Leistung", &leistung_wert, {
|
||||
let text = if summe.as_ref().is_some_and(|s| s.leistung_w.is_none()) {
|
||||
("dq-fehlt", "nicht von jeder Karte geliefert".to_string())
|
||||
("dq-ok", "nicht von jeder Karte geliefert".to_string())
|
||||
} else {
|
||||
let (k, t) = qualitaet(gpu_alter, intervall, gpu_fehler);
|
||||
(k, t)
|
||||
@ -326,7 +326,7 @@ pub(super) async fn html(state: &AppState) -> String {
|
||||
.collect::<String>();
|
||||
let host_html = if !host_zeilen.is_empty() {
|
||||
format!(
|
||||
"<table><thead><tr><th>Host</th><th>Auslastung</th></tr></thead><tbody>{host_zeilen}</tbody></table>"
|
||||
"<div class=\"breit\"><table><thead><tr><th>Host</th><th>Auslastung</th></tr></thead><tbody>{host_zeilen}</tbody></table></div>"
|
||||
)
|
||||
} else if let Some(f) = host_fehler {
|
||||
format!(
|
||||
@ -339,7 +339,7 @@ pub(super) async fn html(state: &AppState) -> String {
|
||||
let gpu_html = if gpus.is_empty() {
|
||||
gpu_leer(&gpu_status, intervall)
|
||||
} else {
|
||||
gpu_table(&gpus)
|
||||
format!("<div class=\"breit\">{}</div>", gpu_table(&gpus))
|
||||
};
|
||||
|
||||
// Modelle und Ladephasen wie bisher.
|
||||
@ -400,7 +400,7 @@ pub(super) async fn html(state: &AppState) -> String {
|
||||
<p class=\"klein\">CPU und RAM: Sicht des Rechners (/proc). Zähler und Stundenfenster seit dem Start des Gateways (maximal letzte Stunde). Stand {now} UTC, wird alle 5 s erneuert.</p>",
|
||||
kopf = kopf(&gesundheit, &node, &nexus_core::now_iso8601()),
|
||||
engines = engine_tabelle(&statuses),
|
||||
inst = instance_table(&instances),
|
||||
inst = format!("<div class=\"breit\">{}</div>", instance_table(&instances)),
|
||||
uptime = uptime(state.started.elapsed().as_secs()),
|
||||
req = t.requests,
|
||||
waiting = t.waiting,
|
||||
|
||||
Reference in New Issue
Block a user