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:
@@ -120,30 +120,34 @@ 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"
|
style={{
|
||||||
className="partner-btn-outline"
|
margin: 0,
|
||||||
style={{ padding: '8px 14px', minWidth: 64 }}
|
textAlign: 'center',
|
||||||
onClick={onClose}
|
fontWeight: 700,
|
||||||
|
fontSize: 17,
|
||||||
|
lineHeight: 1.3,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
关闭
|
地图选点
|
||||||
</button>
|
</h2>
|
||||||
<span style={{ fontWeight: 600, fontSize: 16 }}>地图选点</span>
|
<div style={{ display: 'flex', alignItems: 'center', gap: 10 }}>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="partner-btn-primary"
|
className="partner-btn-primary"
|
||||||
style={{
|
style={{
|
||||||
padding: '8px 14px',
|
flex: 1,
|
||||||
minWidth: 64,
|
padding: '12px 16px',
|
||||||
|
fontSize: 15,
|
||||||
|
fontWeight: 600,
|
||||||
opacity: pending ? 1 : 0.45,
|
opacity: pending ? 1 : 0.45,
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
}}
|
}}
|
||||||
@@ -152,6 +156,15 @@ export default function TencentLocPickerOverlay({
|
|||||||
>
|
>
|
||||||
确认
|
确认
|
||||||
</button>
|
</button>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="partner-btn-outline"
|
||||||
|
style={{ padding: '12px 16px', minWidth: 72, flexShrink: 0 }}
|
||||||
|
onClick={onClose}
|
||||||
|
>
|
||||||
|
关闭
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p
|
<p
|
||||||
|
|||||||
Reference in New Issue
Block a user