spoilers: Adjust HTML source order to match presentation.

This commit is contained in:
Karl Stolley
2024-04-12 14:53:48 -05:00
committed by Tim Abbott
parent a49111c89a
commit f2a1c96940
2 changed files with 10 additions and 14 deletions

View File

@@ -270,7 +270,7 @@ export const update_elements = ($content: JQuery): void => {
// Add the expand/collapse button to spoiler blocks
const toggle_button_html =
'<span class="spoiler-button" aria-expanded="false"><span class="spoiler-arrow"></span></span>';
$(this).prepend($(toggle_button_html));
$(this).append($(toggle_button_html));
});
// Display the view-code-in-playground and the copy-to-clipboard button inside the div.codehilite element,