調整歷史戰績刪除提示並更新 README

This commit is contained in:
2026-04-16 18:14:56 +08:00
parent d5fee1d299
commit 0cfcdc3b0a
3 changed files with 19 additions and 22 deletions

View File

@@ -38,7 +38,7 @@
- 點擊任一筆可開啟得分紀錄彈窗 - 點擊任一筆可開啟得分紀錄彈窗
- 彈窗右上角提供 `X` 關閉按鈕,手機更容易操作 - 彈窗右上角提供 `X` 關閉按鈕,手機更容易操作
- 每筆資料可單獨刪除 - 每筆資料可單獨刪除
- 刪除前會進行二次確認,降低誤刪風險 - 刪除前只會提示一次確認視窗
## 本機開發 ## 本機開發

View File

@@ -1473,8 +1473,8 @@
position: relative; position: relative;
width: min(680px, 100%); width: min(680px, 100%);
display: grid; display: grid;
gap: 16px; gap: 10px;
padding: 22px 20px; padding: 18px 18px 16px;
border-radius: 24px; border-radius: 24px;
background: linear-gradient(180deg, #fff8e8, #ffe5ad); background: linear-gradient(180deg, #fff8e8, #ffe5ad);
box-shadow: box-shadow:
@@ -1520,41 +1520,43 @@
.history-modal-score { .history-modal-score {
display: grid; display: grid;
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
gap: 12px; gap: 8px;
align-items: center; align-items: center;
padding: 16px; padding: 10px 12px;
border-radius: 18px; border-radius: 14px;
background: rgba(255, 249, 238, 0.94); background: rgba(255, 249, 238, 0.94);
} }
.history-modal-score div { .history-modal-score div {
display: grid; display: grid;
gap: 6px; gap: 2px;
justify-items: center; justify-items: center;
text-align: center; text-align: center;
} }
.history-modal-score strong { .history-modal-score strong {
font-family: var(--mono); font-family: var(--mono);
font-size: 2.5rem; font-size: 1.9rem;
line-height: 1; line-height: 1;
color: #16342f; color: #16342f;
} }
.history-modal-score span { .history-modal-score span {
font-size: 0.88rem;
color: #5f4a35; color: #5f4a35;
} }
.history-modal-score-divider { .history-modal-score-divider {
font-family: var(--mono); font-family: var(--mono);
font-size: 1.8rem; font-size: 1.3rem;
color: #70543c; color: #70543c;
} }
.history-modal-summary { .history-modal-summary {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 10px; gap: 8px;
font-size: 0.86rem;
color: #5f4a35; color: #5f4a35;
} }
@@ -1854,7 +1856,8 @@
} }
.history-modal { .history-modal {
padding: 18px 14px; gap: 8px;
padding: 14px 12px;
border-radius: 18px; border-radius: 18px;
} }
@@ -1877,11 +1880,13 @@
} }
.history-modal-score { .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 { .history-modal-score-divider {
display: none; display: block;
} }
.history-replay-row { .history-replay-row {

View File

@@ -53,14 +53,6 @@ export function HistoryPage() {
return return
} }
const confirmedAgain = window.confirm(
`請再次確認要刪除這筆戰績:\n${item.leftTeamName} vs ${item.rightTeamName}`,
)
if (!confirmedAgain) {
return
}
setDeletingId(item.id) setDeletingId(item.id)
setError('') setError('')
@@ -128,7 +120,7 @@ export function HistoryPage() {
{item.score[0]} - {item.score[1]} {item.score[0]} - {item.score[1]}
</span> </span>
<span>{item.typeLabel}</span> <span>{item.typeLabel}</span>
<span>{item.winScore}</span> <span>{item.winScore}</span>
</div> </div>
</button> </button>