From 5992702799eaf7a71cde83112c1ce478c893377b Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Thu, 18 Mar 2021 13:26:46 +0300
Subject: feat: adapt Forms for mobile

---
 src/containers/Service/ServiceItem.tsx | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

(limited to 'src/containers/Service/ServiceItem.tsx')

diff --git a/src/containers/Service/ServiceItem.tsx b/src/containers/Service/ServiceItem.tsx
index 585f609..c1f5446 100644
--- a/src/containers/Service/ServiceItem.tsx
+++ b/src/containers/Service/ServiceItem.tsx
@@ -40,16 +40,14 @@ const ServiceItem: React.FC = () => {
     <Page
       title={id ? item?.name : `Новый ${service.nameSingular}`}
       actions={actions}
-      className="flex"
+      className="grid lg:grid-cols-2"
     >
       {(!id || item) && (
-        <div className="w-1/3">
-          <Formik
-            initialValues={_.defaults(item, service.default)}
-            onSubmit={onSubmit}
-            children={service.Form}
-          />
-        </div>
+        <Formik
+          initialValues={_.defaults(item, service.default)}
+          onSubmit={onSubmit}
+          children={service.Form}
+        />
       )}
       {item && service.Panel && <service.Panel item={item} mutate={mutate} />}
     </Page>
-- 
cgit v1.2.3

