Break http images and implement barebones spoiler support when not in mobile mode
see #1042 see #483
This commit is contained in:
parent
0e4932d973
commit
08b304eccf
2 changed files with 124 additions and 33 deletions
|
|
@ -34,7 +34,11 @@ MatrixText {
|
|||
border: 1px solid " + Nheko.colors.text + ";
|
||||
}
|
||||
blockquote { margin-left: 1em; }
|
||||
</style>
|
||||
" + (enabled ? "span[data-mx-spoiler] {
|
||||
color: transparent;
|
||||
background-color: " + Nheko.colors.text + ";
|
||||
}" : "") + // TODO(Nico): Figure out how to support mobile
|
||||
"</style>
|
||||
" + formatted.replace(/<pre>/g, "<pre style='white-space: pre-wrap; background-color: " + Nheko.colors.alternateBase + "'>").replace(/<del>/g, "<s>").replace(/<\/del>/g, "</s>").replace(/<strike>/g, "<s>").replace(/<\/strike>/g, "</s>")
|
||||
width: parent.width
|
||||
height: !keepFullText ? Math.round(Math.min(timelineView.height / 8, implicitHeight)) : implicitHeight
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue