Skip to content

Commit 17f3609

Browse files
authored
fix : 문제 이미지 누락된 코드 수정 (#158)
1 parent 2ef0a49 commit 17f3609

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/main/resources/templates/test-submit.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@
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
}
@@ -816,6 +816,10 @@
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 = '네트워크 오류';

0 commit comments

Comments
 (0)