2c517740 by Jonille Arreglo

29047_export_pdf

1 parent 8e616d2e
......@@ -13,11 +13,12 @@ export default function ExportButton({
for(var i = 0; i < response_to_export.children.length; i++) {
if(!response_to_export.children[i].querySelector(".message")) continue;
let img_url = window.location.origin + "/assets/images/";
let msg = "<div style='float: left; margin-left: 10px; padding-top: 5px; margin-bottom: 5px;'>"+response_to_export.children[i].querySelector(".message").innerHTML+"</div>";
if(response_to_export.children[i].classList.contains("chatgpt")) {
let msg = "<div style='float: left; margin-left: 10px; padding-top: 5px;'>"+response_to_export.children[i].querySelector(".message").innerHTML+"</div>";
let profile = "<div style='width: 36px; height: 36px; background: #4c66ef; border-radius: 5px; float: left;'><img style='width: 24px; height: 24px; margin-top: 6px; margin-left: 6px;' src='" + img_url + "bot.png'></div>";
response = response + "<div style='background: #ddf1f9; padding: 5px'>"+ profile + msg +"</div>";
} else {
let msg = "<div style='float: left; margin-left: 10px;'>"+response_to_export.children[i].querySelector(".message").innerHTML+"</div>";
let profile = "<div style='width: 36px; height: 36px; background: #6BA447; border-radius: 5px; float: left;'><img style='width: 24px; height: 24px; margin-top: 6px; margin-left: 6px;' src='" + img_url + "user.png'></div>";
response = response + "<div style='padding: 5px'>"+ profile + msg +"</div>";
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!