This commit is contained in:
2025-06-27 20:41:04 +02:00
parent a843208422
commit e444d0d7ae
3 changed files with 73 additions and 5 deletions

View File

@@ -121,12 +121,12 @@ export default function RustStatusPage() {
{/* Health Check Section */}
<div className="mb-6">
<h2 className="text-base sm:text-lg font-semibold mb-2">Health-Check</h2>
<h2 className="text-base sm:text-lg font-semibold mb-2 text-center">Health-Check</h2>
{healthLoading && <div className="text-center py-4 text-base">Lade Health-Check...</div>}
{healthError && <div className="text-red-500 text-center text-base">{healthError}</div>}
{health && (
<div className="bg-white rounded-lg shadow p-4 flex flex-col gap-2">
<div className="flex flex-wrap gap-4">
<div className="bg-white rounded-lg shadow p-4 flex flex-col gap-2 items-center">
<div className="flex flex-wrap gap-4 justify-center">
<div className="flex flex-col items-center">
<span className={`text-lg font-bold ${health.posts_dir_exists ? 'text-green-700' : 'text-red-700'}`}>{health.posts_dir_exists ? '✔' : '✖'}</span>
<span className="text-xs text-gray-600">Posts-Verzeichnis</span>
@@ -165,9 +165,9 @@ export default function RustStatusPage() {
)}
</div>
{health.errors.length > 0 && (
<div className="mt-2 text-red-600 text-xs">
<div className="mt-2 text-red-600 text-xs text-center">
<b>Fehler:</b>
<ul className="list-disc ml-5">
<ul className="list-disc ml-5 inline-block text-left">
{health.errors.map((err, i) => <li key={i}>{err}</li>)}
</ul>
</div>