fix style on safari
This commit is contained in:
parent
6bb4aab54f
commit
7009de21f4
2 changed files with 17 additions and 29 deletions
|
@ -124,7 +124,8 @@
|
||||||
}</span><a href="${reply.url}" class="reply-date">${new Date(
|
}</span><a href="${reply.url}" class="reply-date">${new Date(
|
||||||
reply.published
|
reply.published
|
||||||
).toLocaleDateString()}</a><div class="clear-both"></div>`;
|
).toLocaleDateString()}</a><div class="clear-both"></div>`;
|
||||||
const replyBlock = document.createElement("quote");
|
const replyBlock = document.createElement("div");
|
||||||
|
replyBlock.className = "reply-block";
|
||||||
replyBlock.innerHTML = reply.content.html;
|
replyBlock.innerHTML = reply.content.html;
|
||||||
replyBlock.insertBefore(author, replyBlock.firstChild);
|
replyBlock.insertBefore(author, replyBlock.firstChild);
|
||||||
cell.appendChild(replyBlock);
|
cell.appendChild(replyBlock);
|
||||||
|
@ -141,16 +142,6 @@
|
||||||
document.getElementById(
|
document.getElementById(
|
||||||
"page-reposts"
|
"page-reposts"
|
||||||
).innerHTML = `• ${reposts.length} reposts`;
|
).innerHTML = `• ${reposts.length} reposts`;
|
||||||
|
|
||||||
const others = mentions.filter(
|
|
||||||
(m) =>
|
|
||||||
m["wm-property"] !== "like-of" &&
|
|
||||||
m["wm-property"] !== "in-reply-to" &&
|
|
||||||
m["wm-property"] !== "repost-of"
|
|
||||||
);
|
|
||||||
console.log("others", others);
|
|
||||||
|
|
||||||
// console.log("mentions", mentions);
|
|
||||||
})
|
})
|
||||||
.catch((err) => console.log("err", err));
|
.catch((err) => console.log("err", err));
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,14 +1,13 @@
|
||||||
<section id="replies"></section>
|
<section id="replies"></section>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
quote {
|
.reply-block {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
border-left: 3px solid #ccc;
|
border-left: 3px solid #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
.author-wrapper {
|
|
||||||
display: block;
|
|
||||||
.reply-photo {
|
.reply-photo {
|
||||||
width: 2em;
|
width: 2em;
|
||||||
height: 2em;
|
height: 2em;
|
||||||
|
@ -25,6 +24,4 @@
|
||||||
.reply-name {
|
.reply-name {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue