halbot 1995.1.46 → 1995.1.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/turn.html +9 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "halbot",
|
|
3
3
|
"description": "Just another AI powered Telegram bot, which is simple design, easy to use, extendable and fun.",
|
|
4
|
-
"version": "1995.1.
|
|
4
|
+
"version": "1995.1.47",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/halbot",
|
|
7
7
|
"type": "module",
|
package/web/turn.html
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
7
|
<title>HAL9000 Chat</title>
|
|
8
|
+
<link rel="icon" type="image/svg+xml"
|
|
9
|
+
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3CradialGradient id='a' cx='50%25' cy='50%25' r='50%25' fx='50%25' fy='50%25'%3E%3Cstop offset='0%25' stop-color='%23ffeb3b'/%3E%3Cstop offset='20%25' stop-color='%23ff9800'/%3E%3Cstop offset='60%25' stop-color='%23f44336'/%3E%3Cstop offset='100%25' stop-color='%23b71c1c'/%3E%3C/radialGradient%3E%3ClinearGradient id='b' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23e0e0e0'/%3E%3Cstop offset='50%25' stop-color='%239e9e9e'/%3E%3Cstop offset='100%25' stop-color='%23616161'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='50' cy='50' r='48' fill='url(%23b)' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='50' cy='50' r='42' fill='%23111'/%3E%3Ccircle cx='50' cy='50' r='28' fill='url(%23a)' stroke='%23800000' stroke-width='1'/%3E%3Cellipse cx='60' cy='40' rx='10' ry='6' fill='rgba(255,255,255,0.4)' transform='rotate(-45 60 40)'/%3E%3C/svg%3E">
|
|
8
10
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
|
9
11
|
<link rel="stylesheet"
|
|
10
12
|
href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.6.1/github-markdown-light.min.css">
|
|
@@ -594,7 +596,7 @@
|
|
|
594
596
|
btn.textContent = '-';
|
|
595
597
|
|
|
596
598
|
const fullHeight = pre.scrollHeight;
|
|
597
|
-
pre.style.height = '
|
|
599
|
+
pre.style.height = '58px'; // Replaced 60px
|
|
598
600
|
pre.offsetHeight; // Force reflow
|
|
599
601
|
pre.style.height = fullHeight + 'px';
|
|
600
602
|
|
|
@@ -612,7 +614,7 @@
|
|
|
612
614
|
const fullHeight = pre.offsetHeight;
|
|
613
615
|
pre.style.height = fullHeight + 'px';
|
|
614
616
|
pre.offsetHeight; // Force reflow
|
|
615
|
-
pre.style.height = '
|
|
617
|
+
pre.style.height = '58px'; // Replaced 60px
|
|
616
618
|
}
|
|
617
619
|
};
|
|
618
620
|
pre.appendChild(btn);
|
|
@@ -625,6 +627,11 @@
|
|
|
625
627
|
pre.style.wordBreak = 'break-word';
|
|
626
628
|
block.style.whiteSpace = 'pre-wrap';
|
|
627
629
|
block.style.wordBreak = 'break-word';
|
|
630
|
+
|
|
631
|
+
// Default Collapse for think/tools
|
|
632
|
+
pre.classList.add('collapsed');
|
|
633
|
+
pre.style.height = '58px';
|
|
634
|
+
btn.textContent = '+';
|
|
628
635
|
}
|
|
629
636
|
});
|
|
630
637
|
|