Skip to content

Commit c08e31b

Browse files
committed
로직런 문제 오류
로직런 문제 오류
1 parent bda52d6 commit c08e31b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

frontend/src/features/wars/minigames/LogicRun.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@
124124
<div class="code-display">
125125
<div v-for="(line, idx) in currentRoundData?.codeBlock" :key="idx" class="code-line-display">
126126
<span v-if="line.type === 'fixed'" class="code-text">{{ line.text }}</span>
127-
<span v-else class="code-blank">{{ line.text }}</span>
127+
<!-- [수정 2026-03-04] ________를 제거하고 앞 텍스트 + 빈칸 표시 -->
128+
<template v-else>
129+
<span class="code-text">{{ line.text.replace(/_{4,}/, '').trimEnd() }}</span>
130+
<span class="code-blank-box">   </span>
131+
</template>
128132
</div>
129133
</div>
130134

@@ -141,7 +145,8 @@
141145
class="btn-option"
142146
:disabled="roundTimeout <= 0"
143147
>
144-
{{ opt }}
148+
<!-- [수정 2026-03-04] 빈 문자열({}, [] 등) 방어: 김표로 대체 -->
149+
{{ (opt === '' || opt === null || opt === undefined) ? '(empty)' : opt }}
145150
</button>
146151
</div>
147152
</div>
@@ -1553,6 +1558,7 @@ onUnmounted(() => {
15531558
.code-line-display { margin-bottom:.4rem; }
15541559
.code-text { color:#e0f2fe; }
15551560
.code-blank { color:#fbbf24; background:rgba(251,191,36,.1); padding:0.2rem 0.4rem; border-radius:0.2rem; border-bottom:2px dashed #fbbf24; }
1561+
.code-blank-box { display:inline-block; min-width:80px; border-bottom:2px dashed #fbbf24; background:rgba(251,191,36,.08); color:#fbbf24; padding:0 0.4rem; border-radius:0.2rem; margin-left:4px; vertical-align:middle; }
15561562
15571563
.blank-info { padding:1rem; background:rgba(8,12,30,.9); border-top:1px solid rgba(0,240,255,.1); }
15581564
.option-buttons { display:grid; grid-template-columns:1fr 1fr; gap:.5rem; margin-top:.5rem; }

0 commit comments

Comments
 (0)