mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-02 10:00:17 +05:30
Fix critical bugs in v1.7.8: file association and print preview
- Fixed command-line argument parsing for packaged apps using app.isPackaged - Fixed print preview to show markdown content instead of toolbar - Rewrote print handler to rely on CSS @media print rules - Enhanced CSS with attribute selectors for dynamic preview panes - Removed DevTools auto-open for production build - Updated version to 1.7.8 across all files 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
+21
-3
@@ -2833,14 +2833,19 @@ body.theme-concrete-warm .status-bar {
|
||||
#editor-container,
|
||||
.editor-container,
|
||||
#status-bar,
|
||||
.status-bar {
|
||||
.status-bar,
|
||||
.editor-pane,
|
||||
[id^="editor-pane-"] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Show preview in full width */
|
||||
#preview,
|
||||
.preview,
|
||||
.preview-content {
|
||||
.preview-content,
|
||||
[id^="preview-"],
|
||||
[id^="preview-pane-"],
|
||||
.tab-content {
|
||||
display: block !important;
|
||||
width: 100% !important;
|
||||
max-width: 100% !important;
|
||||
@@ -2848,10 +2853,12 @@ body.theme-concrete-warm .status-bar {
|
||||
margin: 0 !important;
|
||||
padding: 20px !important;
|
||||
overflow: visible !important;
|
||||
position: static !important;
|
||||
}
|
||||
|
||||
/* Optimize preview content for printing */
|
||||
.preview-content {
|
||||
.preview-content,
|
||||
[id^="preview-"] {
|
||||
line-height: 1.6;
|
||||
font-size: 12pt;
|
||||
color: #000 !important;
|
||||
@@ -2969,11 +2976,20 @@ body.theme-concrete-warm .status-bar {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
/* No-styles printing mode */
|
||||
body.printing-no-styles .preview-content,
|
||||
body.printing-no-styles [id^="preview-"],
|
||||
.print-no-styles .preview-content {
|
||||
color: #000 !important;
|
||||
background: white !important;
|
||||
}
|
||||
|
||||
body.printing-no-styles .preview-content h1,
|
||||
body.printing-no-styles .preview-content h2,
|
||||
body.printing-no-styles .preview-content h3,
|
||||
body.printing-no-styles .preview-content h4,
|
||||
body.printing-no-styles .preview-content h5,
|
||||
body.printing-no-styles .preview-content h6,
|
||||
.print-no-styles .preview-content h1,
|
||||
.print-no-styles .preview-content h2,
|
||||
.print-no-styles .preview-content h3,
|
||||
@@ -2984,11 +3000,13 @@ body.theme-concrete-warm .status-bar {
|
||||
border-color: #999 !important;
|
||||
}
|
||||
|
||||
body.printing-no-styles .preview-content code,
|
||||
.print-no-styles .preview-content code {
|
||||
background: #f5f5f5 !important;
|
||||
color: #000 !important;
|
||||
}
|
||||
|
||||
body.printing-no-styles .preview-content pre,
|
||||
.print-no-styles .preview-content pre {
|
||||
background: #f5f5f5 !important;
|
||||
color: #000 !important;
|
||||
|
||||
Reference in New Issue
Block a user