Correctly hide spoiler links
BUG: 458311
This commit is contained in:
@@ -44,6 +44,10 @@ a{
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
" + (!spoilerRevealed ? "
|
" + (!spoilerRevealed ? "
|
||||||
|
[data-mx-spoiler] a {
|
||||||
|
color: transparent;
|
||||||
|
background: " + Kirigami.Theme.textColor + ";
|
||||||
|
}
|
||||||
[data-mx-spoiler] {
|
[data-mx-spoiler] {
|
||||||
color: transparent;
|
color: transparent;
|
||||||
background: " + Kirigami.Theme.textColor + ";
|
background: " + Kirigami.Theme.textColor + ";
|
||||||
@@ -58,7 +62,10 @@ a{
|
|||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
textFormat: Text.RichText
|
textFormat: Text.RichText
|
||||||
|
|
||||||
onLinkActivated: RoomManager.openResource(link)
|
onLinkActivated: {
|
||||||
|
spoilerRevealed = true
|
||||||
|
RoomManager.openResource(link)
|
||||||
|
}
|
||||||
onHoveredLinkChanged: if (hoveredLink.length > 0 && hoveredLink !== "1") {
|
onHoveredLinkChanged: if (hoveredLink.length > 0 && hoveredLink !== "1") {
|
||||||
applicationWindow().hoverLinkIndicator.text = hoveredLink;
|
applicationWindow().hoverLinkIndicator.text = hoveredLink;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user