Fix pre whitespace, log-pre-error margin, error log heading

This commit is contained in:
Oliver Hofmann 2026-05-10 10:18:27 +02:00
parent ca55783b90
commit 02b4ad06ca
2 changed files with 3 additions and 4 deletions

View File

@ -200,12 +200,10 @@ function SettingsSection({ password, refreshKey }) {
</form> </form>
<div className="log-section"> <div className="log-section">
<h3>Nutzungslog (letzte 10 Einträge)</h3> <h3>Nutzungslog (letzte 10 Einträge)</h3>
<pre className="log-pre"> <pre className="log-pre">{usageLog.length > 0 ? usageLog.join('\n') : '— keine Einträge —'}</pre>
{usageLog.length > 0 ? usageLog.join('\n') : '— keine Einträge —'}
</pre>
{errorLog.length > 0 && ( {errorLog.length > 0 && (
<> <>
<h3>Fehlerlog</h3> <h3>Fehlerlog (letzte 10 Einträge)</h3>
<pre className="log-pre log-pre-error">{errorLog.join('\n')}</pre> <pre className="log-pre log-pre-error">{errorLog.join('\n')}</pre>
</> </>
)} )}

View File

@ -484,4 +484,5 @@ tr:hover {
.log-pre-error { .log-pre-error {
background: #2d1b1b; background: #2d1b1b;
color: #f5a0a0; color: #f5a0a0;
margin-bottom: 0;
} }