File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
src/main/resources/templates Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 295295 /* 비활성 상태의 밑줄 */
296296 color : # ccc ;
297297 /* 기본 글자색 */
298- font-size : 20px ;
298+ font-size : 20px ;
299299 font-weight : 600 ;
300300 transition : all 0.2s ease-in-out;
301301 }
816816 < div id ="discussion-pagination "> </ div >
817817 </ div >
818818
819+ < div id ="prob-image-wrapper ">
820+ < img id ="prob-image " src ="" alt ="문제 이미지 " style ="max-width: 100%; height: auto; " />
821+ </ div >
822+
819823 </ div >
820824 < div class ="right ">
821825 < div class ="section ">
@@ -932,6 +936,13 @@ <h3>채점 결과</h3>
932936 probTimeEl . textContent = data . timeLimit ?? '--' ;
933937 probMemEl . textContent = data . memoryLimit ?? '--' ;
934938 probCatsEl . textContent = Array . isArray ( data . categories ) ? data . categories . join ( ', ' ) : '' ;
939+
940+ if ( data . imageUrl ) {
941+ probImageEl . src = data . imageUrl ;
942+ probImageEl . style . display = 'block' ;
943+ } else {
944+ probImageEl . style . display = 'none' ;
945+ }
935946 } catch ( err ) {
936947 console . error ( err ) ;
937948 probTitleEl . textContent = '네트워크 오류' ;
You can’t perform that action at this time.
0 commit comments