mirror of
https://github.com/hubHarmony/servii-frontend.git
synced 2024-11-18 05:40:31 +00:00
better color for history cards
This commit is contained in:
parent
11d90b0115
commit
921667dfbc
@ -36,8 +36,6 @@ const ServerHistory = () => {
|
||||
historyString = historyString.replace(/'{2,}/g, '');
|
||||
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(/(type": "ServerCreate|ServerRun|Command|UpdateProperties)(details": )/g, '$1", "$2');
|
||||
|
||||
@ -52,12 +50,9 @@ const ServerHistory = () => {
|
||||
details: detailsMatch ? detailsMatch[1] : null
|
||||
};
|
||||
|
||||
console.log("Parsed entry:", parsedEntry);
|
||||
|
||||
return parsedEntry;
|
||||
});
|
||||
|
||||
console.log("Final history array:", historyArray);
|
||||
|
||||
setHistory(historyArray);
|
||||
} else {
|
||||
|
@ -6,25 +6,27 @@
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 1.5rem;
|
||||
background-color: white;
|
||||
background-color: #1D1836;
|
||||
color: black;
|
||||
margin-bottom: 1rem;
|
||||
padding: 2.5rem;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
border: .1rem solid #343947;
|
||||
|
||||
.historyCards {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.historyCard {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1.5rem;
|
||||
border: 1px solid #ccc;
|
||||
padding: 1rem;
|
||||
border-radius: 4px;
|
||||
background-color: #f9f9f9;
|
||||
color: black;
|
||||
background-color: #100D25;
|
||||
color: white;
|
||||
border: .1rem solid #343947;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -32,6 +34,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.filterContainer input[type="checkbox"] {
|
||||
|
Loading…
Reference in New Issue
Block a user