기준코드뷰어에서 footer 삭제. 뷰어 div 높이 조정
parent
c35583e9fe
commit
882e63d89d
|
|
@ -2,6 +2,9 @@ import React from 'react';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
|
|
||||||
function EgovFooter() {
|
function EgovFooter() {
|
||||||
|
if(window.location.pathname==="/standardCode/viewer"){
|
||||||
|
return null;
|
||||||
|
}else{
|
||||||
return (
|
return (
|
||||||
<div className="footer">
|
<div className="footer">
|
||||||
<div className="inner">
|
<div className="inner">
|
||||||
|
|
@ -32,5 +35,6 @@ function EgovFooter() {
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export default EgovFooter;
|
export default EgovFooter;
|
||||||
|
|
@ -306,4 +306,4 @@
|
||||||
.calendar_info ul li a {color: #222; font-size: 16px; font-weight: 300;}
|
.calendar_info ul li a {color: #222; font-size: 16px; font-weight: 300;}
|
||||||
.calendar_info ul li span {position: absolute; right: 15px; top: 15px; color: #808080; font-size: 16px; font-weight: 300;}
|
.calendar_info ul li span {position: absolute; right: 15px; top: 15px; color: #808080; font-size: 16px; font-weight: 300;}
|
||||||
|
|
||||||
.viewerDiv{max-height: 650px; overflow-y: auto;}
|
.viewerDiv{height: calc(100vh - 180px); overflow-y: auto;}
|
||||||
|
|
@ -20,8 +20,6 @@ function CodeViewer(props) {
|
||||||
console.log("viewer [location] : ", location);
|
console.log("viewer [location] : ", location);
|
||||||
console.log("viewer [docCode] : ", docCode);
|
console.log("viewer [docCode] : ", docCode);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const updateDocCode = useCallback((docCode, docName)=>{
|
const updateDocCode = useCallback((docCode, docName)=>{
|
||||||
setDocCode(docCode);
|
setDocCode(docCode);
|
||||||
setDocName(docName);
|
setDocName(docName);
|
||||||
|
|
@ -121,7 +119,7 @@ function CodeViewer(props) {
|
||||||
console.log("------------------------------viewer [End]");
|
console.log("------------------------------viewer [End]");
|
||||||
console.groupEnd("viewer");
|
console.groupEnd("viewer");
|
||||||
return (
|
return (
|
||||||
<Row>
|
<Row className="mx-0">
|
||||||
<Col xs={12} className="border-bottom">
|
<Col xs={12} className="border-bottom">
|
||||||
<Row>
|
<Row>
|
||||||
<Col xs={3}></Col>
|
<Col xs={3}></Col>
|
||||||
|
|
|
||||||
|
|
@ -225,7 +225,7 @@ const SecondRoutes = () => {
|
||||||
{/* 사이트관리자 암호 바꾸기 기능 추가 2023.04.15(토) 김일국 */}
|
{/* 사이트관리자 암호 바꾸기 기능 추가 2023.04.15(토) 김일국 */}
|
||||||
<Route path={URL.ADMIN_MANAGER} element={<EgovAdminPasswordUpdate />} />
|
<Route path={URL.ADMIN_MANAGER} element={<EgovAdminPasswordUpdate />} />
|
||||||
|
|
||||||
{/*기준코드*/}
|
{/*기준코드 뷰어*/}
|
||||||
<Route path={URL.STANDARD_CODE_VIEWER} element={<CodeViewer mode={CODE.MODE_READ} />} />
|
<Route path={URL.STANDARD_CODE_VIEWER} element={<CodeViewer mode={CODE.MODE_READ} />} />
|
||||||
|
|
||||||
</Routes>
|
</Routes>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue