mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-21 15:48:04 +01:00
Big picture fixes (#5565)
This commit is contained in:
parent
45c4cd01c5
commit
0f68c6fb5b
@ -717,6 +717,11 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
|
||||
width: calc((100vw - 880px - 120px) /2);
|
||||
}
|
||||
|
||||
.pfp_character {
|
||||
position: relative;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.pfp_character:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
@ -354,6 +354,12 @@ function addBigPicture() {
|
||||
var timestamp = new Date().getTime();
|
||||
imgElement.src = "/file/cache/pfp_character.png?time=" + timestamp;
|
||||
imgElement.classList.add("bigProfilePicture");
|
||||
imgElement.addEventListener("load", function () {
|
||||
this.style.visibility = "visible";
|
||||
});
|
||||
imgElement.addEventListener("error", function () {
|
||||
this.style.visibility = "hidden";
|
||||
});
|
||||
|
||||
var imgElementParent = document.getElementById("chat").parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;
|
||||
imgElementParent.appendChild(imgElement);
|
||||
|
Loading…
Reference in New Issue
Block a user