various fixes

This commit is contained in:
MathMan05 2024-06-21 18:41:40 -05:00
parent cc34929bdb
commit ae43fd497a
3 changed files with 20 additions and 12 deletions

View file

@ -79,5 +79,3 @@ class voice{
}
}
}
const audio=new voice("triangle",101);
//audio.play();

View file

@ -140,6 +140,7 @@ class embed{
{
const td=document.createElement("td");
const img=document.createElement("img");
if(this.json.thumbnail){
img.classList.add("embedimg");
img.onclick=function(){
const full=new fullscreen(["img",img.src,["fit"]]);
@ -147,6 +148,7 @@ class embed{
}
img.src=this.json.thumbnail.proxy_url;
td.append(img);
}
trtop.append(td);
}
const bottomtr=document.createElement("tr");
@ -165,10 +167,12 @@ class embed{
const div=document.createElement("div");
div.classList.add("embed");
if(this.json.provider){
const providor=document.createElement("p");
providor.classList.add("provider");
providor.textContent=this.json.provider.name;
div.append(providor);
}
const a=document.createElement("a");
a.href=this.json.url;
a.textContent=this.json.title;

View file

@ -62,6 +62,9 @@ pre {
background-color: var(--code-bg);
width: 100%;
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
white-space: pre-wrap;
}
samp {
@ -291,6 +294,7 @@ div {
width: 99%;
height: .5in;
z-index: -100;
max-width: 99%;
}
p {
@ -432,6 +436,7 @@ p {
display: inline-block;
grid-template-rows: auto 1fr;
height: calc(100dvh - .1in - var(--servertd-height));
max-width: 100%;
}
.timestamp {
@ -605,6 +610,7 @@ textarea {
.servernamediv {
width: 100%;
max-width: 100%;
}
button {