better color for history cards

This commit is contained in:
AntoninoP 2024-08-24 11:47:26 +02:00
parent 11d90b0115
commit 921667dfbc
2 changed files with 11 additions and 13 deletions

View File

@ -36,8 +36,6 @@ const ServerHistory = () => {
historyString = historyString.replace(/'{2,}/g, ''); historyString = historyString.replace(/'{2,}/g, '');
historyString = historyString.trim(); historyString = historyString.trim();
console.log("History string after parsing:", historyString);
historyString = historyString.replace(/(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})(type": ")/g, '$1", "$2'); historyString = historyString.replace(/(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})(type": ")/g, '$1", "$2');
historyString = historyString.replace(/(type": "ServerCreate|ServerRun|Command|UpdateProperties)(details": )/g, '$1", "$2'); historyString = historyString.replace(/(type": "ServerCreate|ServerRun|Command|UpdateProperties)(details": )/g, '$1", "$2');
@ -52,12 +50,9 @@ const ServerHistory = () => {
details: detailsMatch ? detailsMatch[1] : null details: detailsMatch ? detailsMatch[1] : null
}; };
console.log("Parsed entry:", parsedEntry);
return parsedEntry; return parsedEntry;
}); });
console.log("Final history array:", historyArray);
setHistory(historyArray); setHistory(historyArray);
} else { } else {

View File

@ -6,25 +6,27 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
gap: 1.5rem; gap: 1.5rem;
background-color: white; background-color: #1D1836;
color: black; color: black;
margin-bottom: 1rem; margin-bottom: 1rem;
padding: 2.5rem; padding: 2.5rem;
font-size: 1.2rem; font-size: 1.2rem;
border: .1rem solid #343947;
} }
.historyCards { .historyCard {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 1rem; gap: 1rem;
} margin-bottom: 1.5rem;
.historyCard {
border: 1px solid #ccc; border: 1px solid #ccc;
padding: 1rem; padding: 1rem;
border-radius: 4px; border-radius: 4px;
background-color: #f9f9f9; background-color: #100D25;
color: black; color: white;
border: .1rem solid #343947;
} }
@ -32,6 +34,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
color: white;
} }
.filterContainer input[type="checkbox"] { .filterContainer input[type="checkbox"] {