${innerContent}
diff --git a/capabilities/testdrive-jsui/js/controls/debug-control.js b/capabilities/testdrive-jsui/js/controls/debug-control.js
index c0fb71a4..431659ee 100644
--- a/capabilities/testdrive-jsui/js/controls/debug-control.js
+++ b/capabilities/testdrive-jsui/js/controls/debug-control.js
@@ -167,10 +167,13 @@ class DebugControl extends ControlBase {
'Not available'
};
+ // Get Markitect version from config or default
+ const markitectVersion = window.markitectConfig?.version || 'Unknown';
+
return `
-
System Information:
-
+
+
Markitect: ${markitectVersion}
Viewport: ${systemInfo.viewport}
Screen: ${systemInfo.screen}
Memory: ${systemInfo.memory}
diff --git a/markitect/clean_document_manager.py b/markitect/clean_document_manager.py
index cde27a10..54067789 100644
--- a/markitect/clean_document_manager.py
+++ b/markitect/clean_document_manager.py
@@ -1324,7 +1324,14 @@ MISSING: {len(missing_components)} components
config['version'] = f"{version_info['repo_name']} v{version_info['version']}{version_info['git_info']}"
config['repoName'] = version_info['repo_name']
else:
- config['version'] = 'Markitect v0.8.1'
+ # Get version from CLI command as fallback
+ import subprocess
+ try:
+ result = subprocess.run(['markitect', '--version'], capture_output=True, text=True, timeout=5)
+ actual_version = result.stdout.strip() if result.returncode == 0 else '0.8.1.dev44+gf788ccdfd.d20251114'
+ except:
+ actual_version = '0.8.1.dev44+gf788ccdfd.d20251114'
+ config['version'] = f'Markitect v{actual_version}'
config['repoName'] = 'Markitect'
# Add insert mode specific config
diff --git a/testdrive-jsui/static/css/controls.css b/testdrive-jsui/static/css/controls.css
index 08cefe40..73410c18 100644
--- a/testdrive-jsui/static/css/controls.css
+++ b/testdrive-jsui/static/css/controls.css
@@ -53,13 +53,7 @@
font-family: monospace;
}
-.debug-control .debug-header {
- background: #343a40;
- color: #fff;
- padding: 0.5rem;
- margin: -0.75rem -0.75rem 0.5rem -0.75rem;
- border-radius: 5px 5px 0 0;
-}
+/* Removed debug-header styles - using base class title formatting */
.debug-control .debug-logs {
max-height: 200px;
diff --git a/testdrive-jsui/static/js/controls/contents-control.js b/testdrive-jsui/static/js/controls/contents-control.js
index db5afe89..c5bdcdca 100644
--- a/testdrive-jsui/static/js/controls/contents-control.js
+++ b/testdrive-jsui/static/js/controls/contents-control.js
@@ -118,10 +118,10 @@ class ContentsControl extends ControlBase {
if (displayHeadings.length === 0) {
return `
-
+
No headings found in document
@@ -129,10 +129,10 @@ class ContentsControl extends ControlBase {
}
const searchHTML = `
-
+
`;
@@ -157,15 +157,15 @@ class ContentsControl extends ControlBase {
}).join('');
return `
-
+
${searchHTML}
-
+
Found ${displayHeadings.length} heading${displayHeadings.length !== 1 ? 's' : ''}
${contentsHTML}
-
+