Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion application/single_app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
EXECUTOR_TYPE = 'thread'
EXECUTOR_MAX_WORKERS = 30
SESSION_TYPE = 'filesystem'
VERSION = "0.239.005"
VERSION = "0.239.011"

SECRET_KEY = os.getenv('SECRET_KEY', 'dev-secret-key-change-in-production')

Expand Down
32 changes: 32 additions & 0 deletions application/single_app/static/css/chats.css
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,8 @@ pre[class*="language-"] {
display: block;
/* Optional: prevent code from wrapping */
white-space: pre;
position: relative;
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pre, pre[class*="language-"] now gets padding-top: 2.2rem globally to make room for a copy button. This will add extra whitespace to code blocks anywhere in the app, even when no copy button is injected. Consider scoping this to chat messages (e.g., .message-text pre...) or applying padding only when .copy-code-btn is present.

Suggested change
position: relative;
position: relative;
}
/* Apply extra top padding only to code blocks inside chat messages
to make room for the copy button */
.message-text pre,
.message-text pre[class*="language-"] {

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@paullizer paullizer Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please update based on suggestion

padding-top: 2.2rem; /* Make room for the copy button */
}

/* Code element inside pre: don't expand parent */
Expand Down Expand Up @@ -1462,6 +1464,36 @@ ol {
background-color: rgba(255, 255, 255, 0.1);
}

/* Table copy toolbar */
.table-copy-toolbar {
text-align: right;
}

.table-copy-toolbar-top {
margin-bottom: 2px;
}

.table-copy-toolbar-bottom {
margin-top: 2px;
margin-bottom: 8px;
}

.table-copy-toolbar .btn {
font-size: 0.7rem;
padding: 1px 6px;
opacity: 0.5;
transition: opacity 0.2s;
}

.table-copy-toolbar .btn:hover {
opacity: 1;
}

[data-bs-theme="dark"] .table-copy-toolbar .btn {
color: #adb5bd;
border-color: #495057;
}

/* Code blocks within tables */
.message-text table code {
background-color: rgba(0, 0, 0, 0.1);
Expand Down
Loading
Loading