Fix: recover bot; llama.cpp fix

This commit is contained in:
Grail Finder
2025-06-15 11:44:39 +03:00
parent 30e322d9c6
commit d4daa02155
12 changed files with 113 additions and 38 deletions

View File

@ -1,5 +1,5 @@
{{define "actionhistory"}}
<div class="overflow-y-auto max-h-96 border-2 border-gray-300 p-4 rounded-lg space-y-2">
<div id="actionHistoryContainer" class="overflow-y-auto max-h-96 border-2 border-gray-300 p-4 rounded-lg space-y-2">
Backlog:
{{range .}}
<div class="flex items-center justify-between p-2 rounded">
@ -14,4 +14,11 @@
</div>
{{end}}
</div>
<script>
// Scroll to the bottom of the action history container
const container = document.getElementById('actionHistoryContainer');
if (container) {
container.scrollTop = container.scrollHeight;
}
</script>
{{end}}

View File

@ -1,6 +1,9 @@
{{define "cardcounter"}}
<div class="flex justify-center">
<p>Blue cards left: {{.BlueCounter}}</p>
<p>Red cards left: {{.RedCounter}}</p>
<p>Blue cards left: {{.BlueCounter}} </p>
<p>Red cards left: {{.RedCounter}} </p>
<hr>
<p>Limit of cards to open: {{.ThisTurnLimit}} </p>
<p>Opened this turn: {{.OpenedThisTurn}} </p>
</div>
{{end}}

View File

@ -32,7 +32,6 @@
{{if .Room.IsRunning}}
{{template "cardcounter" .Room}}
{{end}}
<div id="addbot">
{{if and (eq .State.Username .Room.CreatorName) (not .Room.IsRunning)}}
{{template "addbot" .}}