調整歷史戰績刪除提示並更新 README
This commit is contained in:
29
src/App.css
29
src/App.css
@@ -1473,8 +1473,8 @@
|
||||
position: relative;
|
||||
width: min(680px, 100%);
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
padding: 22px 20px;
|
||||
gap: 10px;
|
||||
padding: 18px 18px 16px;
|
||||
border-radius: 24px;
|
||||
background: linear-gradient(180deg, #fff8e8, #ffe5ad);
|
||||
box-shadow:
|
||||
@@ -1520,41 +1520,43 @@
|
||||
.history-modal-score {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
||||
gap: 12px;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
padding: 16px;
|
||||
border-radius: 18px;
|
||||
padding: 10px 12px;
|
||||
border-radius: 14px;
|
||||
background: rgba(255, 249, 238, 0.94);
|
||||
}
|
||||
|
||||
.history-modal-score div {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
gap: 2px;
|
||||
justify-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.history-modal-score strong {
|
||||
font-family: var(--mono);
|
||||
font-size: 2.5rem;
|
||||
font-size: 1.9rem;
|
||||
line-height: 1;
|
||||
color: #16342f;
|
||||
}
|
||||
|
||||
.history-modal-score span {
|
||||
font-size: 0.88rem;
|
||||
color: #5f4a35;
|
||||
}
|
||||
|
||||
.history-modal-score-divider {
|
||||
font-family: var(--mono);
|
||||
font-size: 1.8rem;
|
||||
font-size: 1.3rem;
|
||||
color: #70543c;
|
||||
}
|
||||
|
||||
.history-modal-summary {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
gap: 8px;
|
||||
font-size: 0.86rem;
|
||||
color: #5f4a35;
|
||||
}
|
||||
|
||||
@@ -1854,7 +1856,8 @@
|
||||
}
|
||||
|
||||
.history-modal {
|
||||
padding: 18px 14px;
|
||||
gap: 8px;
|
||||
padding: 14px 12px;
|
||||
border-radius: 18px;
|
||||
}
|
||||
|
||||
@@ -1877,11 +1880,13 @@
|
||||
}
|
||||
|
||||
.history-modal-score {
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
||||
gap: 6px;
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
.history-modal-score-divider {
|
||||
display: none;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.history-replay-row {
|
||||
|
||||
@@ -53,14 +53,6 @@ export function HistoryPage() {
|
||||
return
|
||||
}
|
||||
|
||||
const confirmedAgain = window.confirm(
|
||||
`請再次確認要刪除這筆戰績:\n${item.leftTeamName} vs ${item.rightTeamName}`,
|
||||
)
|
||||
|
||||
if (!confirmedAgain) {
|
||||
return
|
||||
}
|
||||
|
||||
setDeletingId(item.id)
|
||||
setError('')
|
||||
|
||||
@@ -128,7 +120,7 @@ export function HistoryPage() {
|
||||
比分:{item.score[0]} - {item.score[1]}
|
||||
</span>
|
||||
<span>模式:{item.typeLabel}</span>
|
||||
<span>勝利分數:{item.winScore}</span>
|
||||
<span>獲勝分數:{item.winScore}</span>
|
||||
</div>
|
||||
</button>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user