From 4cfa98d7f0b1bee300277485d879627c144f87b3 Mon Sep 17 00:00:00 2001 From: HotelSync Date: Fri, 27 Mar 2026 10:47:08 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20EquipmentPage=20=E2=80=94=20input=20clas?= =?UTF-8?q?s,=20code=20modal=20layout=20(no=20wrapping)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- src/pages/EquipmentPage.tsx | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/src/pages/EquipmentPage.tsx b/src/pages/EquipmentPage.tsx index 503d54a..b249891 100644 --- a/src/pages/EquipmentPage.tsx +++ b/src/pages/EquipmentPage.tsx @@ -116,16 +116,14 @@ function PairCodeModal({ ) : ( <> -
+

Код подключения

-
- - {code?.slice(0, 3)} {code?.slice(3)} - - -
+ + {code} + +
@@ -193,7 +191,7 @@ function DeviceForm({ setPurpose(e.target.value as 'fiscal' | 'kitchen' | 'bar' | 'receipt' | 'other')} - className="w-full input-field text-sm" + className="w-full input text-sm" > {Object.entries(PURPOSE_LABELS).map(([k, v]) => ( @@ -218,7 +216,7 @@ function DeviceForm({ setName(e.target.value)} - className="w-full input-field text-sm" + className="w-full input text-sm" placeholder="Касса №1 / Принтер кухни" />
@@ -251,7 +249,7 @@ function DeviceForm({ setNetworkHost(e.target.value)} - className="w-full input-field text-sm font-mono" + className="w-full input text-sm font-mono" placeholder="192.168.1.50" />
@@ -260,7 +258,7 @@ function DeviceForm({ setNetworkPort(e.target.value)} - className="w-full input-field text-sm font-mono" + className="w-full input text-sm font-mono" placeholder="9100" /> @@ -354,7 +352,7 @@ function WorkstationCard({ value={name} onChange={e => setName(e.target.value)} onKeyDown={e => { if (e.key === 'Enter') saveName(); if (e.key === 'Escape') setEditing(false) }} - className="input-field py-1 text-sm w-48" + className="input py-1 text-sm w-48" autoFocus /> @@ -572,7 +570,7 @@ export function EquipmentPage() { value={addingName} onChange={e => setAddingName(e.target.value)} onKeyDown={e => { if (e.key === 'Enter') handleAdd(); if (e.key === 'Escape') setShowAdd(false) }} - className="flex-1 input-field" + className="flex-1 input" placeholder="Ресепшн 1 / Бар / Касса SPA" autoFocus />