Move summary

main
Bob Mottram 2021-01-19 19:17:20 +00:00
parent ea6ad72228
commit f2f81ddc52
2 changed files with 4 additions and 3 deletions

View File

@ -1521,7 +1521,8 @@ def individualPostAsHtml(allowDownloads: bool,
addEmojiToDisplayName(baseDir, httpPrefix,
nickname, domain,
cwStr, False)
contentStr += '<label class="cw">' + cwStr + '</label>\n '
contentStr += \
'<label class="cw"><summary>' + cwStr + '</summary></label>\n '
if isModerationPost:
containerClass = 'container report'
# get the content warning text

View File

@ -167,8 +167,8 @@ def getContentWarningButton(postID: str, translate: {},
content: str) -> str:
"""Returns the markup for a content warning button
"""
return ' <details><summary><label class="cw">' + \
translate['SHOW MORE'] + '</label></summary>' + \
return ' <details class="cw">' + \
translate['SHOW MORE'] + \
'<div id="' + postID + '">' + content + \
'</div></details>\n'