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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user