simplify code block width to 80vw for all screen sizes
This commit is contained in:
parent
ac0ff18308
commit
86ef139a1d
2 changed files with 4 additions and 24 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue