Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions clash-frontend/src/games/clash/ClashZkArena.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1676,7 +1676,13 @@ export function ClashZkArena({
<div className="field-with-unit">
<input value={pointsStr} onChange={(e) => setPointsStr(e.target.value)} placeholder="0.1" />
<span>XLM</span>
<div className="chip-row">
<button type="button" className="chip-btn" onClick={() => setPointsStr("0.1")}>0.1</button>
<button type="button" className="chip-btn" onClick={() => setPointsStr("0.5")}>0.5</button>
<button type="button" className="chip-btn" onClick={() => setPointsStr("1")}>1</button>
</div>
</div>

<label>Opponent Username</label>
<input value={opponentUsername} onChange={(e) => setOpponentUsername(e.target.value)} placeholder="captain_name" />
{error && <p className="inline-error">{error}</p>}
Expand Down
21 changes: 21 additions & 0 deletions clash-frontend/src/games/clash/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,27 @@
.field-with-unit input { padding-right: 3rem; }
.field-with-unit span { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); color: #f5a623; font-size: 0.72rem; }

/* Chip buttons for quick wager selections */
.chip-btn {
margin-left: 0.4rem;
background: rgba(0,212,255,0.1);
border: 1px solid #00d4ff;
color: #00d4ff;
padding: 0.2rem 0.4rem;
border-radius: 4px;
cursor: pointer;
font-size: 0.8rem;
transition: background 0.2s ease;
}
.chip-btn:hover:not(:disabled) {
background: rgba(0,212,255,0.3);
}
.chip-row {
display: flex;
gap: 0.4rem;
margin-top: 0.4rem;
}

.btn-arena-primary {
width: 100%;
background: #e5133a;
Expand Down