Revert "change code blocks to use 100% width with box-sizing"
This reverts commit 3192a9a75b.
This commit is contained in:
parent
3192a9a75b
commit
8f2395f7ce
2 changed files with 24 additions and 8 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue