Skip to content

Commit

Permalink
bugfix: initial pdf2js UI view tr missing some classes
Browse files Browse the repository at this point in the history
  • Loading branch information
skeptrunedev authored and cdxker committed Nov 20, 2024
1 parent b6a2d1f commit 4783d1b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pdf2md/server/src/templates/demo-ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
</div>
</form>
</div>
<div class="px-4 mt-10 sm:mt-14 md:mt-24 max-w-screen-2xl mx-auto">
<div id="utility-results-view" class="px-4 mt-10 sm:mt-14 md:mt-24 max-w-screen-2xl mx-auto hidden">
<div class="col-span-2 flex justify-between items-center py-1">
<p id="document-price" class="text-gray-600 text-sm/6"></p>
<div class="flex items-center gap-2">
Expand Down
13 changes: 13 additions & 0 deletions pdf2md/server/static/pdf2md.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ const defaultTableRowStr = `
>
[email protected]
</td>
<td
class="task-prompt-tokens whitespace-nowrap px-3 py-4 text-sm text-gray-500"
>
10
</td>
<td
class="task-completion-tokens whitespace-nowrap px-3 py-4 text-sm text-gray-500"
>
10
</td>
<td
class="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-0"
>
Expand Down Expand Up @@ -87,6 +97,9 @@ const displayTask = (task) => {
view: "FitH",
},
});

const utilityResultsView = document.getElementById("utility-results-view");
utilityResultsView.classList.remove("hidden");
const resultContainer = document.getElementById("result-container");
resultContainer.classList.add(...["border", "border-gray-900"]);

Expand Down

0 comments on commit 4783d1b

Please sign in to comment.