opencompletion.com/templates
Russell 76b8058e92
Move copy and run buttons below code (#34)
* 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>
2025-11-11 13:22:40 -05:00
..
base.html Refactor CSS from inline to external stylesheet 2025-11-08 18:41:56 +00:00
chat.html Move copy and run buttons below code (#34) 2025-11-11 13:22:40 -05:00
index.html Enhance user experience with multiple improvements 2025-08-11 16:01:51 -04:00
search.html remove username and snippet from SERP page 2024-07-04 12:04:46 -04:00