feat(KB-264): add word wrap toggle and fix markdown preview scrolling

- Add word wrap toggle button with WrapText icon to FileEditor

- Fix markdown preview scrolling with height: 100% CSS

- Add comprehensive tests for word wrap toggle and scrollability
This commit is contained in:
gsxdsm
2026-03-30 23:39:40 -07:00
parent 2cd382b7eb
commit 8d8ccef302
3 changed files with 116 additions and 4 deletions

View File

@@ -6279,9 +6279,10 @@ html .column.drag-over * {
/* File Editor Preview */
.file-editor-preview {
flex: 1;
height: 100%;
min-height: 0;
overflow-y: auto;
padding: 16px;
min-height: 0;
}
/* Textarea-based file editor */
@@ -6307,6 +6308,11 @@ html .column.drag-over * {
tab-size: 2;
}
.file-editor-textarea.file-editor-textarea--wrap {
white-space: pre-wrap;
overflow-wrap: break-word;
}
.file-editor-textarea:focus {
outline: 1px solid var(--border);
outline-offset: -1px;