최정임 최정임 2023-04-07
230407 최정임 에이젼시, 보호자 반응형 css수정
@c9727b561b6d9e9e411092d1fdc6928df6369494
client/resources/css/main.css
--- client/resources/css/main.css
+++ client/resources/css/main.css
@@ -417,8 +417,8 @@
 }
 .statistics-grid > div{height: 35rem;}
 .statistics-grid .statistics-guardian {
-  height: 41vh;
 }
+.statistics-grid .statistics-guardian li:nth-child(2) > div{height: 23vh !important;}
 .statistics-grid .statistics-guardian li:nth-child(1) p:nth-child(2){font-size: 2rem; font-weight: bold; margin-right: 1rem;}
 .statistics-grid .statistics-guardian li:nth-child(1) p:nth-child(3){font-size: 1.6rem; }
 .guardian-medicine {
@@ -428,7 +428,7 @@
 .statistics-guardian li {
   padding: 1rem 3rem;
   background: #ffffff;
-  border-radius: 20px;
+  border-radius: 10px;
   margin: 0 auto;
   position: relative;
   text-align: center;
@@ -441,7 +441,7 @@
   left: 22px;
 }
 .chart-guardian {
-  height: 70%;
+  
 }
 
 .guardian-table {
client/resources/css/responsive.css
--- client/resources/css/responsive.css
+++ client/resources/css/responsive.css
@@ -688,17 +688,22 @@
   }
   .statistics-grid .statistics-guardian {
     margin-bottom: 1rem;
-    padding: 0;
-    height: 32vh;
+    padding: 0.5rem;   
+    
   }
   .statistics-grid .statistics-guardian li {
     padding: 0;
+    
   }
   .statistics-grid .statistics-guardian li p:nth-child(1) {
     margin-right: 1rem;
   }
+  .statistics-grid .statistics-guardian li:nth-child(2) {
+    box-shadow: 1px 1px 5px 1px rgb(0 0 0 / 9%);
+    margin-top: 1rem;
+  }
   .statistics-grid .statistics-guardian li:nth-child(1) p:nth-child(2) {
-    width: 100%;
+
   }
   .statistics-grid .statistics-guardian li:nth-child(1) p:nth-child(3) {
     display: none;
@@ -822,7 +827,6 @@
   }
 
   .container button {
-    width: 30%;
   }
 
   /* 검색창 */
@@ -955,7 +959,7 @@
   }
 
   .modal-main table td {
-    padding: 0.5rem 0 0 12rem;
+    padding: 0.5rem ;
   }
 
   .medicine-revise tr {
@@ -1149,9 +1153,26 @@
  }
 
  .join-group h3{margin-bottom: 3rem;}
+ .detail-table td{padding: 0 !important;}
+ .detail-table input[type="text"]{width: -webkit-fill-available;}
+ .detail-table input[type="file"]{width: -webkit-fill-available;}
+
+
+ .agency-visitlist {
+  overflow-x: auto;
+  -webkit-overflow-scrolling: touch;
+}
+.agency-visitlist thead{display: none;}
+.agency-visitlist span{border-bottom: 1px solid #e4dccf; font-weight: bold; padding: 0.5rem; margin-bottom: 0.5rem; display: block;}
+.agency-visitlist span img{width: 2rem;}
+.agency-visitlist tr{background-color: #f2f0eb; padding: 1rem; margin-bottom: 1rem;}
+.agency-visitlist td{background-color: #ffffffde;
+  border-radius: 5px; margin-bottom: 0.5rem;}
+  .agency-visitlist .btn-wrap{margin-top: 0;}
+ 
 }
 
 
 /* 반응형 그냥 테이블 protector-user / medicine-detail-table
    컴포넌트 senior-table
-   상세페이지 questionnaire-table */
(파일 끝에 줄바꿈 문자 없음)
+   상세페이지 detail-table */
(파일 끝에 줄바꿈 문자 없음)
client/views/component/Modal_Blood.jsx
--- client/views/component/Modal_Blood.jsx
+++ client/views/component/Modal_Blood.jsx
@@ -1,6 +1,7 @@
 import React from "react";
 import Button from "./Button.jsx";
 import Table from "./Table.jsx";
+import AssignmentIcon from '@mui/icons-material/Assignment';
 
 export default function Modal({open, close, }) {
   const thead1 = [
@@ -14,12 +15,24 @@
   const key1 = ["No", "date", "high","low", "pulse", "writer"];
   const content1 = [
     {
-      No: 1,
-      date: "2023-01-25",
-      high: "130",
-      low: "90",
-      pulse: "60",
-      writer: "정간호",
+      No: (
+        <p><span><AssignmentIcon sx={{ fontSize: 20 }} />{thead1[0]}</span>  1948.11.15</p>
+      ),
+      date:(
+        <p><span>{thead1[1]}</span> 2023-01-25</p>
+      ), 
+      high: (
+        <p><span>{thead1[2]}</span> 130</p>
+      ),
+      low: (
+        <p><span>{thead1[3]}</span> 90</p>
+      ),
+      pulse: (
+        <p><span>{thead1[4]}</span> 60</p>
+      ),
+      writer: (
+        <p><span>{thead1[5]}</span>정간호</p>
+      ),
     },
   ];
   return (
@@ -32,7 +45,7 @@
           </div>
           <div className="modal-main"><div className="board-wrap">        
           <div>
-          <table className="margin-bottom2">
+          <table className="margin-bottom2 detail-table">
             <tr>
               <th>대상자명</th>
               <td className="flex-start">
@@ -70,7 +83,7 @@
             </div>
           </div>
           <Table
-              className={"caregiver-user "}
+              className={"caregiver-user senior-table"}
               head={thead1}
               contents={content1}
               contentKey={key1}
client/views/component/Modal_ECG.jsx
--- client/views/component/Modal_ECG.jsx
+++ client/views/component/Modal_ECG.jsx
@@ -1,6 +1,7 @@
 import React from "react";
 import Button from "./Button.jsx";
 import Table from "./Table.jsx";
+import AssignmentIcon from '@mui/icons-material/Assignment';
 
 export default function Modal({ open, close, }) {
   const thead1 = [
@@ -12,10 +13,18 @@
   const key1 = ["No", "date", "file","writer",];
   const content1 = [
     {
-      No: 1,
-      date: "2023-01-25",
-      file: ( <a href="" download="테스트">다운로드</a>),
-      writer: "정간호",
+      No: (
+        <p><span><AssignmentIcon sx={{ fontSize: 20 }} />{thead1[0]}</span> 1</p>
+      ),
+      date: (
+        <p><span>{thead1[1]}</span>  2023-01-25</p>
+      ),
+      file: (
+        <p><span>{thead1[2]}</span> <a href="" download="테스트">다운로드</a></p>
+      ),
+      writer: (
+        <p><span>{thead1[3]}</span>  정간호</p>
+      ),
     },
   ];
   return (
@@ -28,7 +37,7 @@
           </div>
           <div className="modal-main"><div className="board-wrap">        
           <div>
-          <table className="margin-bottom2">
+          <table className="margin-bottom2 detail-table ">
             <tr>
               <th>대상자명</th>
               <td className="flex-start">
@@ -61,7 +70,7 @@
             </div>
           </div>
           <Table
-              className={"caregiver-user "}
+              className={"caregiver-user senior-table"}
               head={thead1}
               contents={content1}
               contentKey={key1}
client/views/pages/equipment/EquipmentManagementSelect.jsx
--- client/views/pages/equipment/EquipmentManagementSelect.jsx
+++ client/views/pages/equipment/EquipmentManagementSelect.jsx
@@ -306,8 +306,8 @@
 			<Modal open={modalEquipmentIsOpen} close={modalEquipmentClose} header="장비 등록">
 				<div className="board-wrap">
 					<div>
-						<table className="flex70 margin-bottom">
-							<tbody className="equipment-insert">
+						<table className="flex70 margin-bottom detail-table">
+							<tbody className="equipment-insert ">
 								<tr>
 									<th><span style={{color : "red"}}>*</span>종류</th>
 									<td>
@@ -403,7 +403,7 @@
 					<li>납품 장비</li>
 				</ul>
 				<div className="content-wrap">
-					<div className="search-management flex-end margin-bottom2">						
+					<div className="search-management flex-end margin-bottom2 margin-top gap">						
 						<select style={{maxWidth: 'fit-content'}}
 							onChange={(e) => equipmentSearchChange('searchType', e.target.value)}>
 							<option value="equipment_name">모델명</option>
@@ -426,7 +426,7 @@
 										<button className={"btn-small gray-btn"} onClick={() => {modalEquipmentOpen()}}>등록</button>
 									</div>
 								</div>
-								<table class="caregiver-user">
+								<table class="caregiver-user protector-user">
 									<thead>
 										<tr>
 											<th>No</th>
@@ -442,16 +442,16 @@
 									<tbody>
 										{stockEquipmentList.equipmentList.map((item, idx) => { return (
 											<tr>
-												<td>{stockEquipmentList.equipmentListCount - idx - (stockEquipmentSearch.currentPage - 1) * stockEquipmentSearch.perPage}</td>
-												<td>{item['equipment_name']}</td>
-												<td>{item['equipment_serial_number']}</td>
-												<td>{item['equipment_product_date']}</td>
-												<td>{item['equipment_stock_date']}</td>
-												<td>{equipmentStates[item['equipment_state']]}</td>
-												<td>
+												<td data-label="No">{stockEquipmentList.equipmentListCount - idx - (stockEquipmentSearch.currentPage - 1) * stockEquipmentSearch.perPage}</td>
+												<td data-label="모델명">{item['equipment_name']}</td>
+												<td data-label="시리얼넘버">{item['equipment_serial_number']}</td>
+												<td data-label="생산일자">{item['equipment_product_date']}</td>
+												<td data-label="입고일자">{item['equipment_stock_date']}</td>
+												<td data-label="상태">{equipmentStates[item['equipment_state']]}</td>
+												<td data-label="납품">
 													<button className={"btn-small gray-btn"} onClick={() => modalDeliveryOpen(item)}>장비 납품</button>
 												</td>
-												<td>
+												<td data-label="관리">
 													<button className={"btn-small gray-btn"} onClick={() => modalEquipmentOpen(item)}>정보 수정</button>
 												</td>
 											</tr>
client/views/pages/main/Main_agency.jsx
--- client/views/pages/main/Main_agency.jsx
+++ client/views/pages/main/Main_agency.jsx
@@ -22,11 +22,21 @@
   const key = ["No", "agency", "division", "phone", "address",];
   const content = [
     {
-      No: 1,
-      agency: "A복지관",
-      division: "교환",
-      phone: "010-1234-5678",
-      address: "경상북도 군위군 삼국유사면",
+      No: (
+        <p><span>{thead[0]}</span>  1948.11.15</p>
+      ),
+      agency: (
+        <p><span>{thead[1]}</span>  A복지관</p>
+      ),
+      division: (
+        <p><span>{thead[2]}</span>교환</p>
+      ),
+      phone: (
+        <p><span>{thead[3]}</span>010-1234-5678</p>
+      ),
+      address: (
+        <p><span>{thead[4]}</span>경상북도 군위군 삼국유사면</p>
+      ),
     },
   ];
 
client/views/pages/visit/visit/VisitSelectOne.jsx
--- client/views/pages/visit/visit/VisitSelectOne.jsx
+++ client/views/pages/visit/visit/VisitSelectOne.jsx
@@ -88,7 +88,7 @@
               </tr>
             </tbody>
           </table>
-          <div className="flex-center"><Button className={"btn-small green-btn"} btnName={"저장"} /></div >
+          <div className="flex-center"><Button className={"btn-small gray-btn"} btnName={"저장"} /></div >
         </div>
       </Modal>
       <div className="content-wrap">
Add a comment
List