mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-17 07:55:32 +01:00
🧪 fix: Editor Styling, Incomplete Artifact Editing, Optimize Artifact Context (#8953)
* refactor: optimize artifacts context for improved performance * fix: layout classes for artifacts editor * chore: linting * fix: enhance artifact mutation handling in CodeEditor to prevent infinite retries * fix: handle incomplete artifacts in replaceArtifactContent and add regression tests
This commit is contained in:
parent
e7d6100fe4
commit
5d0bc95193
8 changed files with 311 additions and 45 deletions
|
|
@ -313,20 +313,30 @@
|
|||
background-color: transparent; /* Color of the tracking area */
|
||||
}
|
||||
|
||||
.sp-preview-container {
|
||||
@apply flex h-full w-full grow flex-col justify-center;
|
||||
}
|
||||
|
||||
.sp-preview {
|
||||
@apply flex h-full w-full grow flex-col justify-center;
|
||||
}
|
||||
|
||||
.sp-preview-iframe {
|
||||
@apply grow;
|
||||
}
|
||||
|
||||
/* Base wrapper for both preview and editor */
|
||||
.sp-wrapper {
|
||||
@apply flex h-full w-full grow flex-col justify-center;
|
||||
@apply flex h-full w-full grow flex-col;
|
||||
}
|
||||
|
||||
/* Stack containers (sp-preview and sp-editor) */
|
||||
.sp-preview,
|
||||
.sp-editor {
|
||||
@apply flex h-full w-full grow flex-col;
|
||||
}
|
||||
|
||||
/* Inner containers */
|
||||
.sp-preview-container,
|
||||
.sp-code-editor {
|
||||
@apply flex h-full w-full grow flex-col;
|
||||
}
|
||||
|
||||
/* Content elements */
|
||||
.sp-preview-iframe {
|
||||
@apply h-full w-full grow;
|
||||
}
|
||||
|
||||
.sp-cm {
|
||||
@apply h-full w-full grow;
|
||||
}
|
||||
|
||||
@keyframes shake {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue