This commit is contained in:
@@ -19,6 +19,7 @@ export default function ServerConsolePage() {
|
||||
disconnect: () => void;
|
||||
setScale: (scale: number) => void;
|
||||
resize: (width: number, height: number) => void;
|
||||
focus: () => void;
|
||||
} | null>(null);
|
||||
|
||||
const [protocol, setProtocol] = useState<string>(searchParams.get("protocol") || "");
|
||||
@@ -274,7 +275,11 @@ export default function ServerConsolePage() {
|
||||
<label className="text-sm text-text-secondary">Scale</label>
|
||||
<select
|
||||
value={zoom}
|
||||
onChange={(e) => setZoom(Number(e.target.value))}
|
||||
onChange={(e) => {
|
||||
setZoom(Number(e.target.value));
|
||||
e.target.blur();
|
||||
connectionRef.current?.focus();
|
||||
}}
|
||||
className="rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary focus:border-accent/50 focus:outline-none focus:ring-1 focus:ring-accent/30"
|
||||
>
|
||||
<option value={0.5}>50%</option>
|
||||
|
||||
Reference in New Issue
Block a user