:zap: [Enhance] More natural way of visualizing buttons
Browse files
apps/llm_mixer/js/chat_operator.js
CHANGED
@@ -35,19 +35,23 @@ export function get_latest_message_content_displayer() {
|
|
35 |
export function start_latest_message_animation() {
|
36 |
return get_latest_messager_container()
|
37 |
.find(".button-group")
|
38 |
-
.find(".
|
39 |
.find("i")
|
40 |
.addClass("fa-spin-fast")
|
41 |
.css("color", "orange");
|
42 |
}
|
43 |
|
44 |
export function stop_latest_message_animation() {
|
45 |
-
|
46 |
.find(".button-group")
|
47 |
-
.find(".
|
|
|
48 |
.find("i")
|
49 |
.removeClass("fa-spin-fast")
|
50 |
.css("color", "green");
|
|
|
|
|
|
|
51 |
}
|
52 |
|
53 |
export function get_request_messages() {
|
|
|
35 |
export function start_latest_message_animation() {
|
36 |
return get_latest_messager_container()
|
37 |
.find(".button-group")
|
38 |
+
.find(".generate-button")
|
39 |
.find("i")
|
40 |
.addClass("fa-spin-fast")
|
41 |
.css("color", "orange");
|
42 |
}
|
43 |
|
44 |
export function stop_latest_message_animation() {
|
45 |
+
let generate_button = get_latest_messager_container()
|
46 |
.find(".button-group")
|
47 |
+
.find(".generate-button");
|
48 |
+
let generate_button_icon = generate_button
|
49 |
.find("i")
|
50 |
.removeClass("fa-spin-fast")
|
51 |
.css("color", "green");
|
52 |
+
generate_button
|
53 |
+
.removeClass("generate-button")
|
54 |
+
.addClass("regenerate-button");
|
55 |
}
|
56 |
|
57 |
export function get_request_messages() {
|
apps/llm_mixer/js/default.css
CHANGED
@@ -38,7 +38,18 @@
|
|
38 |
max-width: 250px;
|
39 |
}
|
40 |
|
41 |
-
|
42 |
.fa-spin-fast {
|
43 |
animation: fa-spin 0.6s infinite linear;
|
44 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
max-width: 250px;
|
39 |
}
|
40 |
|
|
|
41 |
.fa-spin-fast {
|
42 |
animation: fa-spin 0.6s infinite linear;
|
43 |
+
}
|
44 |
+
|
45 |
+
.message-viewer .edit-button,
|
46 |
+
.message-viewer .copy-button,
|
47 |
+
.message-viewer .regenerate-button {
|
48 |
+
display: none;
|
49 |
+
}
|
50 |
+
|
51 |
+
.message-viewer:hover .edit-button,
|
52 |
+
.message-viewer:hover .copy-button,
|
53 |
+
.message-viewer:hover .regenerate-button {
|
54 |
+
display: inline-block;
|
55 |
+
}
|