Skip to content

Commit 84522ad

Browse files
authored
Merge pull request #1161 from Kiln-AI/sfierro/spec-review-table-overflow-fix
Spec review table overflow fixes
2 parents 7967d6c + 5bdec2e commit 84522ad

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

app/web_ui/src/routes/(app)/specs/[project_id]/[task_id]/spec_builder/review_examples.svelte

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@
152152
</div>
153153
<div class="flex flex-col gap-6">
154154
<div class="rounded-lg border">
155-
<table class="table">
155+
<table class="table table-fixed">
156156
<thead>
157157
<tr>
158-
<th class="w-2/5">Input</th>
159-
<th class="w-2/5">Output</th>
160-
<th class="whitespace-nowrap">
158+
<th>Input</th>
159+
<th>Output</th>
160+
<th class="whitespace-nowrap" style="width: 140px">
161161
<div class="flex flex-row items-center gap-2">
162162
<span>Meets Spec</span>
163163
<span class="font-normal">
@@ -168,7 +168,8 @@
168168
</span>
169169
</div>
170170
</th>
171-
<th class="whitespace-nowrap">Judge Correct</th>
171+
<th class="whitespace-nowrap" style="width: 120px">Judge Correct</th
172+
>
172173
</tr>
173174
</thead>
174175
<tbody>
@@ -180,20 +181,22 @@
180181
{#if input_content.isJson}
181182
<!-- eslint-disable svelte/no-at-html-tags -->
182183
<pre
183-
class="whitespace-pre-wrap">{@html input_content.value}</pre>
184+
class="whitespace-pre-wrap break-words">{@html input_content.value}</pre>
184185
<!-- eslint-enable svelte/no-at-html-tags -->
185186
{:else}
186-
<pre class="whitespace-pre-wrap">{input_content.value}</pre>
187+
<pre
188+
class="whitespace-pre-wrap break-words">{input_content.value}</pre>
187189
{/if}
188190
</td>
189191
<td class="py-2">
190192
{#if output_content.isJson}
191193
<!-- eslint-disable svelte/no-at-html-tags -->
192194
<pre
193-
class="whitespace-pre-wrap">{@html output_content.value}</pre>
195+
class="whitespace-pre-wrap break-words">{@html output_content.value}</pre>
194196
<!-- eslint-enable svelte/no-at-html-tags -->
195197
{:else}
196-
<pre class="whitespace-pre-wrap">{output_content.value}</pre>
198+
<pre
199+
class="whitespace-pre-wrap break-words">{output_content.value}</pre>
197200
{/if}
198201
</td>
199202
<td class="py-2">
@@ -221,7 +224,7 @@
221224
<div class="flex items-center gap-1 justify-center">
222225
{#if is_row_aligned(row)}
223226
<div
224-
class="text-success w-5 h-5 tooltip tooltip-left"
227+
class="text-success w-5 h-5 tooltip tooltip-top"
225228
data-tip="Our automated judge got this right!"
226229
>
227230
<CheckCircleIcon />

0 commit comments

Comments
 (0)