🚀 Auto-deploy: BrainWind atualizado em 14/07/2026 18:03:29
This commit is contained in:
@@ -40,6 +40,8 @@ export function GlobalWindSettingsModal({ trigger }: GlobalWindSettingsModalProp
|
||||
setS3,
|
||||
setS3Group,
|
||||
setTerrainCategory,
|
||||
locality,
|
||||
setLocality,
|
||||
} = useWindStore();
|
||||
|
||||
const [stationQuery, setStationQuery] = useState('');
|
||||
@@ -74,7 +76,7 @@ export function GlobalWindSettingsModal({ trigger }: GlobalWindSettingsModalProp
|
||||
<Tabs defaultValue="norma" className="w-full mt-2 min-w-0">
|
||||
<TabsList className="flex w-full mb-4 bg-muted p-1 text-xs min-w-0">
|
||||
<TabsTrigger value="norma" className="text-xs py-1 px-1.5 flex-1">NBR 6123</TabsTrigger>
|
||||
<TabsTrigger value="local" className="text-xs py-1 px-1.5 flex-1">Local</TabsTrigger>
|
||||
<TabsTrigger value="local" className="text-xs py-1 px-1.5 flex-1">Localidade</TabsTrigger>
|
||||
</TabsList>
|
||||
|
||||
<TabsContent value="norma" className="space-y-4 min-w-0">
|
||||
@@ -186,22 +188,30 @@ export function GlobalWindSettingsModal({ trigger }: GlobalWindSettingsModalProp
|
||||
</div>
|
||||
|
||||
<div className="max-h-[200px] overflow-y-auto rounded-md border divide-y">
|
||||
{filteredStations.map((s) => (
|
||||
<button
|
||||
key={s.id}
|
||||
onClick={() => setV0(s.v0)}
|
||||
className="w-full text-left px-2 py-1.5 hover:bg-muted/60 transition-colors"
|
||||
>
|
||||
<div className="flex justify-between items-center">
|
||||
<span className="font-medium text-xs truncate max-w-[150px]">{s.nome}</span>
|
||||
<Badge variant="outline" className="font-mono text-[10px] py-0 px-1 font-semibold">V₀ = {s.v0} m/s</Badge>
|
||||
</div>
|
||||
<div className="text-[10px] text-muted-foreground">{s.latitude} · {s.longitude} · {s.altitude} m</div>
|
||||
</button>
|
||||
))}
|
||||
{filteredStations.map((s) => {
|
||||
const isSelected = locality === s.nome;
|
||||
return (
|
||||
<button
|
||||
key={s.id}
|
||||
onClick={() => {
|
||||
setV0(s.v0);
|
||||
setLocality(s.nome);
|
||||
}}
|
||||
className={`w-full text-left px-2 py-1.5 transition-colors ${
|
||||
isSelected ? 'bg-primary/10 border-l-2 border-primary' : 'hover:bg-muted/60'
|
||||
}`}
|
||||
>
|
||||
<div className="flex justify-between items-center">
|
||||
<span className={`font-medium text-xs truncate max-w-[150px] ${isSelected ? 'text-primary' : ''}`}>{s.nome}</span>
|
||||
<Badge variant={isSelected ? "default" : "outline"} className="font-mono text-[10px] py-0 px-1 font-semibold">V₀ = {s.v0} m/s</Badge>
|
||||
</div>
|
||||
<div className="text-[10px] text-muted-foreground">{s.latitude} · {s.longitude} · {s.altitude} m</div>
|
||||
</button>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
<p className="text-[10px] leading-tight text-muted-foreground">
|
||||
Selecionar uma estação ajusta V₀. Você pode sobrescrever manualmente na aba NBR.
|
||||
<p className="text-[10px] leading-tight text-muted-foreground mt-2">
|
||||
Selecionar uma estação define a localidade e ajusta V₀. Você pode sobrescrever V₀ manualmente na aba NBR.
|
||||
</p>
|
||||
</div>
|
||||
</TabsContent>
|
||||
|
||||
Reference in New Issue
Block a user