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 <div
style={{ style={{
display: 'flex', display: 'flex',
alignItems: 'center', flexDirection: 'column',
justifyContent: 'space-between', padding: '12px 12px 10px',
padding: '10px 12px',
borderBottom: '1px solid rgba(0,0,0,0.06)', borderBottom: '1px solid rgba(0,0,0,0.06)',
flexShrink: 0, flexShrink: 0,
gap: 8, gap: 10,
background: '#fff', background: '#fff',
}} }}
> >
<button <h2
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"
style={{ style={{
padding: '8px 14px', margin: 0,
minWidth: 64, textAlign: 'center',
opacity: pending ? 1 : 0.45, fontWeight: 700,
width: 'auto', 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> </div>
<p <p