simplify code block width to 80vw for all screen sizes

This commit is contained in:
Russell Ballestrini 2025-10-11 09:01:05 -04:00
parent ac0ff18308
commit 86ef139a1d
2 changed files with 4 additions and 24 deletions

View file

@ -1122,21 +1122,11 @@ 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: min(400px, 85vw);
max-width: 80vw;
}
.ai-message code {
max-width: min(400px, 85vw);
}
@media (min-width: 768px) {
.ai-message pre {
max-width: min(850px, 70vw);
}
.ai-message code {
max-width: min(850px, 70vw);
}
max-width: 80vw;
}
.message-text {

View file

@ -1195,21 +1195,11 @@ 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: min(400px, 85vw);
max-width: 80vw;
}
.ai-message code {
max-width: min(400px, 85vw);
}
@media (min-width: 768px) {
.ai-message pre {
max-width: min(850px, 70vw);
}
.ai-message code {
max-width: min(850px, 70vw);
}
max-width: 80vw;
}
.message-text {