Revert "change code blocks to use 100% width with box-sizing"

This reverts commit 3192a9a75b.
This commit is contained in:
Russell Ballestrini 2025-10-11 08:35:51 -04:00
parent 3192a9a75b
commit 8f2395f7ce
2 changed files with 24 additions and 8 deletions

View file

@ -1122,13 +1122,21 @@ dialog#uncloseai-embedded-modal[data-theme="dark"] .uncloseai-chat-box {
/* Code blocks within AI messages - allow horizontal scroll, preserve all whitespace */
.ai-message pre {
overflow-x: auto;
max-width: 100%;
box-sizing: border-box;
max-width: 340px;
}
.ai-message code {
max-width: 100%;
box-sizing: border-box;
max-width: 340px;
}
@media (min-width: 768px) {
.ai-message pre {
max-width: 720px;
}
.ai-message code {
max-width: 720px;
}
}
.message-text {

View file

@ -1195,13 +1195,21 @@ dialog#uncloseai-embedded-modal[data-theme="dark"] .uncloseai-chat-box {
/* Code blocks within AI messages - allow horizontal scroll, preserve all whitespace */
.ai-message pre {
overflow-x: auto;
max-width: 100%;
box-sizing: border-box;
max-width: 340px;
}
.ai-message code {
max-width: 100%;
box-sizing: border-box;
max-width: 340px;
}
@media (min-width: 768px) {
.ai-message pre {
max-width: 720px;
}
.ai-message code {
max-width: 720px;
}
}
.message-text {