diff --git a/src/components/modals/GithubCardModal.tsx b/src/components/modals/GithubCardModal.tsx
index 39e60cd..8aa65fc 100644
--- a/src/components/modals/GithubCardModal.tsx
+++ b/src/components/modals/GithubCardModal.tsx
@@ -1,5 +1,6 @@
import React, { useState, useEffect } from 'react';
import { X, Github, Eye, EyeOff, Lock, Loader2 } from 'lucide-react';
+import Select from 'react-select';
import { useStore } from '../../store';
import { api } from '../../services/api';
import { useShallow } from 'zustand/react/shallow';
@@ -96,16 +97,38 @@ export const GithubCardModal: React.FC = () => {
-
+
diff --git a/src/components/modals/TripEditor.tsx b/src/components/modals/TripEditor.tsx
index 0e84954..62ddcbe 100644
--- a/src/components/modals/TripEditor.tsx
+++ b/src/components/modals/TripEditor.tsx
@@ -7,6 +7,38 @@ import { GlobalSearchModal } from './GlobalSearchModal';
import { isCompanyCompatible, getTransferableLines, findRoute, computeLoopVia, getLandmarks } from '../../core/railwayRouting'; // Will need to ensure these are typed
import { useShallow } from 'zustand/react/shallow';
import { useUserData } from '../../hooks/useUserData';
+import Select from 'react-select';
+
+const getSelectStyles = (isSmall = false) => ({
+ control: (base: any) => ({
+ ...base,
+ minHeight: isSmall ? '28px' : '36px',
+ fontSize: isSmall ? '11px' : '14px',
+ borderRadius: '0.25rem',
+ borderColor: '#e5e7eb',
+ boxShadow: 'none',
+ '&:hover': {
+ borderColor: '#d1d5db'
+ }
+ }),
+ dropdownIndicator: (base: any) => ({
+ ...base,
+ padding: isSmall ? '2px' : '4px'
+ }),
+ menu: (base: any) => ({
+ ...base,
+ zIndex: 50,
+ fontSize: isSmall ? '11px' : '14px',
+ }),
+ option: (base: any) => ({
+ ...base,
+ padding: isSmall ? '4px 8px' : '8px 12px'
+ }),
+ valueContainer: (base: any) => ({
+ ...base,
+ padding: isSmall ? '0 4px' : '2px 8px'
+ })
+});
export const TripEditor: React.FC = () => {
const {
@@ -434,10 +466,15 @@ export const TripEditor: React.FC = () => {
setForm({ segments: newSegs });
}
}}>
-
+
@@ -476,15 +518,23 @@ export const TripEditor: React.FC = () => {
环线经由
-
+
+
{(() => {
const line = railwayData[segment.lineKey];
@@ -528,7 +578,18 @@ export const TripEditor: React.FC = () => {
-
+
+