Move summary back

merge-requests/8/head
Bob Mottram 2021-01-19 19:24:16 +00:00
parent fe6c3f9f70
commit e22572b67a
2 changed files with 3 additions and 3 deletions

View File

@ -1522,7 +1522,7 @@ def individualPostAsHtml(allowDownloads: bool,
nickname, domain,
cwStr, False)
contentStr += \
'<label class="cw"><summary>' + cwStr + '</summary></label>\n '
'<label class="cw">' + cwStr + '</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 class="cw">' + \
translate['SHOW MORE'] + \
return ' <details class="cw"><summary>' + \
translate['SHOW MORE'] + '</summary>' + \
'<div id="' + postID + '">' + content + \
'</div></details>\n'