Skip to content

Commit 4783d1b

Browse files
skeptrunedevcdxker
authored andcommitted
bugfix: initial pdf2js UI view tr missing some classes
1 parent b6a2d1f commit 4783d1b

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

pdf2md/server/src/templates/demo-ui.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
</div>
180180
</form>
181181
</div>
182-
<div class="px-4 mt-10 sm:mt-14 md:mt-24 max-w-screen-2xl mx-auto">
182+
<div id="utility-results-view" class="px-4 mt-10 sm:mt-14 md:mt-24 max-w-screen-2xl mx-auto hidden">
183183
<div class="col-span-2 flex justify-between items-center py-1">
184184
<p id="document-price" class="text-gray-600 text-sm/6"></p>
185185
<div class="flex items-center gap-2">

pdf2md/server/static/pdf2md.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ const defaultTableRowStr = `
2929
>
3030
lindsay.walton@example.com
3131
</td>
32+
<td
33+
class="task-prompt-tokens whitespace-nowrap px-3 py-4 text-sm text-gray-500"
34+
>
35+
10
36+
</td>
37+
<td
38+
class="task-completion-tokens whitespace-nowrap px-3 py-4 text-sm text-gray-500"
39+
>
40+
10
41+
</td>
3242
<td
3343
class="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-0"
3444
>
@@ -87,6 +97,9 @@ const displayTask = (task) => {
8797
view: "FitH",
8898
},
8999
});
100+
101+
const utilityResultsView = document.getElementById("utility-results-view");
102+
utilityResultsView.classList.remove("hidden");
90103
const resultContainer = document.getElementById("result-container");
91104
resultContainer.classList.add(...["border", "border-gray-900"]);
92105

0 commit comments

Comments
 (0)