fix(partner): restyle map picker header actions

Title centered; wide confirm on left, close on right.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-29 13:08:35 +08:00
parent 507a21a318
commit ca621c9db8
@@ -120,38 +120,51 @@ export default function TencentLocPickerOverlay({
<div
style={{
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
padding: '10px 12px',
flexDirection: 'column',
padding: '12px 12px 10px',
borderBottom: '1px solid rgba(0,0,0,0.06)',
flexShrink: 0,
gap: 8,
gap: 10,
background: '#fff',
}}
>
<button
type="button"
className="partner-btn-outline"
style={{ padding: '8px 14px', minWidth: 64 }}
onClick={onClose}
>
</button>
<span style={{ fontWeight: 600, fontSize: 16 }}></span>
<button
type="button"
className="partner-btn-primary"
<h2
style={{
padding: '8px 14px',
minWidth: 64,
opacity: pending ? 1 : 0.45,
width: 'auto',
margin: 0,
textAlign: 'center',
fontWeight: 700,
fontSize: 17,
lineHeight: 1.3,
}}
disabled={!pending}
onClick={confirmPick}
>
</button>
</h2>
<div style={{ display: 'flex', alignItems: 'center', gap: 10 }}>
<button
type="button"
className="partner-btn-primary"
style={{
flex: 1,
padding: '12px 16px',
fontSize: 15,
fontWeight: 600,
opacity: pending ? 1 : 0.45,
width: 'auto',
}}
disabled={!pending}
onClick={confirmPick}
>
</button>
<button
type="button"
className="partner-btn-outline"
style={{ padding: '12px 16px', minWidth: 72, flexShrink: 0 }}
onClick={onClose}
>
</button>
</div>
</div>
<p