various fixes
This commit is contained in:
parent
cc34929bdb
commit
ae43fd497a
3 changed files with 20 additions and 12 deletions
|
@ -79,5 +79,3 @@ class voice{
|
|||
}
|
||||
}
|
||||
}
|
||||
const audio=new voice("triangle",101);
|
||||
//audio.play();
|
||||
|
|
|
@ -140,13 +140,15 @@ class embed{
|
|||
{
|
||||
const td=document.createElement("td");
|
||||
const img=document.createElement("img");
|
||||
img.classList.add("embedimg");
|
||||
img.onclick=function(){
|
||||
const full=new fullscreen(["img",img.src,["fit"]]);
|
||||
full.show();
|
||||
if(this.json.thumbnail){
|
||||
img.classList.add("embedimg");
|
||||
img.onclick=function(){
|
||||
const full=new fullscreen(["img",img.src,["fit"]]);
|
||||
full.show();
|
||||
}
|
||||
img.src=this.json.thumbnail.proxy_url;
|
||||
td.append(img);
|
||||
}
|
||||
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");
|
||||
const providor=document.createElement("p");
|
||||
providor.classList.add("provider");
|
||||
providor.textContent=this.json.provider.name;
|
||||
div.append(providor);
|
||||
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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue