* Move code block buttons below code instead of above - Modified addCopyButtonToCodeBlock to insert button container after code block - Updated truncateCodeBlock to remove duplicate buttons before adding its own - Ensures clean button placement for both regular and truncated code blocks * Refactor code block button rendering for efficiency - Process blocks in optimal order: truncate → highlight → line numbers → buttons - Eliminate redundant button creation/removal cycle - truncateCodeBlock now only truncates and returns boolean - addCopyButtonToCodeBlock handles all button creation (including Show More) - Buttons always appear below code blocks after full processing This prevents wasteful creation and immediate deletion of buttons for truncated blocks. --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| base.html | ||
| chat.html | ||
| index.html | ||
| search.html | ||