up
This commit is contained in:
+8
-14
@@ -1370,12 +1370,6 @@ export default function App() {
|
||||
{!lookupBusy && !lookupResult && lookupError && (
|
||||
<Badge variant="destructive" className="text-[9px] py-0 px-1.5 normal-case font-medium tracking-wider">{lookupError}</Badge>
|
||||
)}
|
||||
{/* Contacted entity flag (from its DXCC number). */}
|
||||
{flagURL(details.dxcc) && (
|
||||
<img src={flagURL(details.dxcc)} alt="" title={country}
|
||||
className="h-3.5 ml-auto rounded-[2px] border border-border/50 shadow-sm"
|
||||
referrerPolicy="no-referrer" onError={(e) => { (e.currentTarget as HTMLImageElement).style.display = 'none'; }} />
|
||||
)}
|
||||
</Label>
|
||||
<Input
|
||||
ref={callsignRef}
|
||||
@@ -1472,20 +1466,20 @@ export default function App() {
|
||||
{/* DXCC # and Continent are derived from the callsign — read-only.
|
||||
CQ/ITU stay editable but as plain text (no number spinners).
|
||||
Kept compact (Log4OM-style) — just wide enough for their digits. */}
|
||||
<div className="flex flex-col w-11"><Label className="mb-1 h-3.5">DXCC</Label>
|
||||
<Input readOnly tabIndex={-1} className="font-mono bg-muted/40 cursor-default text-center px-1 text-xs"
|
||||
<div className="flex flex-col w-9"><Label className="mb-1 h-3.5 text-[10px]">DXCC</Label>
|
||||
<Input readOnly tabIndex={-1} className="font-mono bg-muted/40 cursor-default text-center px-0.5 text-xs h-7"
|
||||
value={details.dxcc ?? ''} placeholder="—" />
|
||||
</div>
|
||||
<div className="flex flex-col w-9"><Label className="mb-1 h-3.5">CQ</Label>
|
||||
<Input inputMode="numeric" maxLength={2} className="font-mono text-center px-1 text-xs" value={details.cqz ?? ''} placeholder="—"
|
||||
<div className="flex flex-col w-7"><Label className="mb-1 h-3.5 text-[10px]">CQ</Label>
|
||||
<Input inputMode="numeric" maxLength={2} className="font-mono text-center px-0.5 text-xs h-7" value={details.cqz ?? ''} placeholder="—"
|
||||
onChange={(e) => { const v = e.target.value.replace(/\D/g, ''); updateDetails({ cqz: v === '' ? undefined : parseInt(v, 10) }); }} />
|
||||
</div>
|
||||
<div className="flex flex-col w-9"><Label className="mb-1 h-3.5">ITU</Label>
|
||||
<Input inputMode="numeric" maxLength={2} className="font-mono text-center px-1 text-xs" value={details.ituz ?? ''} placeholder="—"
|
||||
<div className="flex flex-col w-7"><Label className="mb-1 h-3.5 text-[10px]">ITU</Label>
|
||||
<Input inputMode="numeric" maxLength={2} className="font-mono text-center px-0.5 text-xs h-7" value={details.ituz ?? ''} placeholder="—"
|
||||
onChange={(e) => { const v = e.target.value.replace(/\D/g, ''); updateDetails({ ituz: v === '' ? undefined : parseInt(v, 10) }); }} />
|
||||
</div>
|
||||
<div className="flex flex-col w-9"><Label className="mb-1 h-3.5">Cont</Label>
|
||||
<Input readOnly tabIndex={-1} className="font-mono uppercase bg-muted/40 cursor-default text-center px-1 text-xs"
|
||||
<div className="flex flex-col w-8"><Label className="mb-1 h-3.5 text-[10px]">Cont</Label>
|
||||
<Input readOnly tabIndex={-1} className="font-mono uppercase bg-muted/40 cursor-default text-center px-0.5 text-xs h-7"
|
||||
value={details.cont} placeholder="—" />
|
||||
</div>
|
||||
</>}
|
||||
|
||||
Reference in New Issue
Block a user