This commit is contained in:
张成
2025-12-11 15:56:22 +08:00
parent c42055d2c3
commit 293b9e6eba
3 changed files with 68 additions and 4 deletions

View File

@@ -79,6 +79,10 @@
cursor: pointer;
transition: opacity 0.2s;
margin-top: 20px;
position: relative;
z-index: 1;
user-select: none;
-webkit-tap-highlight-color: transparent;
&:first-child {
margin-top: 0;
@@ -111,6 +115,8 @@
font-size: 16px;
line-height: 22px;
text-align: center;
pointer-events: none;
user-select: none;
&.primary {
color: #ffffff;

View File

@@ -40,10 +40,22 @@ const LocationConfirmDialog: React.FC<LocationConfirmDialogProps> = ({
<View className="locationDialogContent">
<Text className="locationDialogTitle">{detectedCity}</Text>
<View className="locationDialogButtons">
<View className="locationDialogButton primary" onClick={onConfirm}>
<View
className="locationDialogButton primary"
onClick={(e) => {
e.stopPropagation();
onConfirm();
}}
>
<Text className="locationDialogButtonText primary">{detectedCity}</Text>
</View>
<View className="locationDialogButton secondary" onClick={onCancel}>
<View
className="locationDialogButton secondary"
onClick={(e) => {
e.stopPropagation();
onCancel();
}}
>
<Text className="locationDialogButtonText secondary">{currentCity}</Text>
</View>
</View>