@cluesmith/codev 1.6.0 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -233,6 +233,9 @@ async function renderDashboardTab() {
233
233
  loadFilesTreeIfNeeded()
234
234
  ]);
235
235
 
236
+ // Start auto-polling for file changes
237
+ startFilesPolling();
238
+
236
239
  renderDashboardTabContent();
237
240
  checkStarterMode();
238
241
  }
@@ -21,6 +21,8 @@
21
21
  }
22
22
  body.preview-active {
23
23
  overflow: hidden;
24
+ display: flex;
25
+ flex-direction: column;
24
26
  }
25
27
  .header {
26
28
  padding: 15px 20px;
@@ -29,6 +31,7 @@
29
31
  position: sticky;
30
32
  top: 0;
31
33
  z-index: 100;
34
+ flex-shrink: 0; /* Don't shrink in preview flex layout */
32
35
  }
33
36
  .header h1.path { font-size: 14px; font-weight: 500; font-family: monospace; color: #fff; }
34
37
  .header .subtitle { color: #888; font-size: 12px; margin-top: 4px; }
@@ -109,6 +112,9 @@
109
112
  color: #fff;
110
113
  max-width: 900px;
111
114
  margin: 0 auto;
115
+ /* Fixes #143: use flex to fill remaining height instead of fixed calc */
116
+ flex: 1;
117
+ min-height: 0; /* Allow flex shrinking for overflow to work */
112
118
  }
113
119
 
114
120
  #preview-container h1,
@@ -468,7 +474,7 @@
468
474
  </div>
469
475
 
470
476
  <!-- Markdown preview mode -->
471
- <div id="preview-container" style="display: none; padding: 20px; overflow: auto; height: calc(100vh - 80px);"></div>
477
+ <div id="preview-container" style="display: none; padding: 20px; overflow: auto;"></div>
472
478
 
473
479
  <!-- Image viewer mode -->
474
480
  <div id="image-viewer">
@@ -837,6 +843,8 @@
837
843
  function configureMarked() {
838
844
  if (typeof marked !== 'undefined' && !marked._configured) {
839
845
  marked.use({
846
+ // Enable breaks: single newlines become <br> (fixes #141)
847
+ breaks: true,
840
848
  renderer: {
841
849
  link(href, title, text) {
842
850
  const titleAttr = title ? ` title="${title}"` : '';