오류 문구 css 수정.

cks
강석 최 2023-11-17 17:51:17 +09:00
parent fff91412b5
commit 1f712135e0
2 changed files with 8 additions and 3 deletions

View File

@ -317,4 +317,4 @@
color: forestgreen; color: forestgreen;
} }
.bookmark:hover{cursor: pointer} .bookmark:hover{cursor: pointer}
.errorText{color:red; font-size: x-small; vertical-align: bottom; padding-right: 10px;} .errorText{color:white; background-color: red; font-size: x-small; vertical-align: bottom; padding: 0 10px;}

View File

@ -78,7 +78,11 @@ function CodeViewer(props) {
} }
const chkboxControll = () => { const chkboxControll = () => {
debugger const flag = this.checked;
const checkBoxList = document.querySelectorAll('.'+this.id.replace('chk', ''))
checkBoxList.forEach((input)=>{
input.checked = flag
})
} }
const getCodeDetailInfo = useCallback((docCode) => { const getCodeDetailInfo = useCallback((docCode) => {
@ -134,6 +138,7 @@ function CodeViewer(props) {
"class='titleCheckBox "+parentContCd+"' " + "class='titleCheckBox "+parentContCd+"' " +
"id='"+item.cont_type_cd+"chk' " + "id='"+item.cont_type_cd+"chk' " +
`onclick="const flag = this.checked; document.querySelectorAll('.'+this.id.replace('chk', '')).forEach((input)=>{input.checked = flag})"` + `onclick="const flag = this.checked; document.querySelectorAll('.'+this.id.replace('chk', '')).forEach((input)=>{input.checked = flag})"` +
// "onClick={chkboxControll} "+
">"+item.full_content; ">"+item.full_content;
if(item.cont_level===1 && item.cont_order !== 1){ if(item.cont_level===1 && item.cont_order !== 1){
item.full_content = "<br>"+item.full_content; item.full_content = "<br>"+item.full_content;
@ -174,7 +179,7 @@ function CodeViewer(props) {
item.full_content = item.full_content.replace('<table ', '<table class="table table-bordered "') item.full_content = item.full_content.replace('<table ', '<table class="table table-bordered "')
} }
if(item.error_cd !== null){ if(item.error_cd !== null){
item.full_content = "<div class='errorText'>"+item.error_cd+"</div>"+item.full_content; item.full_content = "<p class='errorText'>"+item.error_cd+"</p><br>"+item.full_content;
} }
item.full_content = item.full_content+"<hr>" item.full_content = item.full_content+"<hr>"
detailTag.push( detailTag.push(