:zap: [Enhance] Remove bottom margins for rendered HTML
Browse files
apps/llm_mixer/index.html
CHANGED
@@ -78,8 +78,5 @@
|
|
78 |
</div>
|
79 |
</div>
|
80 |
</body>
|
81 |
-
<script type="module" src="./js/secrets.js"></script>
|
82 |
-
<script type="module" src="./js/llm_requester.js"></script>
|
83 |
-
<script type="module" src="./js/stream_jsonizer.js"></script>
|
84 |
<script type="module" src="./js/main.js"></script>
|
85 |
</html>
|
|
|
78 |
</div>
|
79 |
</div>
|
80 |
</body>
|
|
|
|
|
|
|
81 |
<script type="module" src="./js/main.js"></script>
|
82 |
</html>
|
apps/llm_mixer/js/chat_operator.js
CHANGED
@@ -94,6 +94,7 @@ export function update_message(json_chunks, content_displayer = null) {
|
|
94 |
content_displayer.attr("raw_text")
|
95 |
)
|
96 |
);
|
|
|
97 |
}
|
98 |
if (finish_reason === "stop") {
|
99 |
console.log("[STOP]");
|
|
|
94 |
content_displayer.attr("raw_text")
|
95 |
)
|
96 |
);
|
97 |
+
content_displayer.find("*").addClass("no-margin-bottom");
|
98 |
}
|
99 |
if (finish_reason === "stop") {
|
100 |
console.log("[STOP]");
|
apps/llm_mixer/js/default.css
CHANGED
@@ -83,3 +83,7 @@
|
|
83 |
.icon-success {
|
84 |
color: green;
|
85 |
}
|
|
|
|
|
|
|
|
|
|
83 |
.icon-success {
|
84 |
color: green;
|
85 |
}
|
86 |
+
|
87 |
+
.no-margin-bottom {
|
88 |
+
margin-bottom: 0;
|
89 |
+
}
|