Skip to content

Commit b0bbe0a

Browse files
puikinshHerleyclaude
committed
fix(css): resolve blank main content in print preview (#5982)
Add @media print rules to reset sticky/fixed positioning and overflow constraints that caused browsers to clip main content during printing. Based on PR #5996 by @herley-shaori, rebuilt dist from current master. Co-Authored-By: Herley <herleys@xlsmart.co.id> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 638168b commit b0bbe0a

9 files changed

Lines changed: 122 additions & 6 deletions

dist/css/adminlte.css

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/adminlte.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/adminlte.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/adminlte.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/adminlte.rtl.css

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/adminlte.rtl.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/adminlte.rtl.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/adminlte.rtl.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/scss/_accessibility.scss

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,4 +290,48 @@ fieldset {
290290
font-size: .8em;
291291
content: " (" attr(href) ")";
292292
}
293+
294+
/* Print Layout Fix - Ensure sidebar and main content are both visible */
295+
.app-wrapper {
296+
display: grid !important;
297+
grid-template-columns: auto 1fr !important;
298+
grid-template-rows: auto 1fr auto !important;
299+
}
300+
301+
.sidebar-overlay {
302+
display: none !important;
303+
}
304+
305+
.app-sidebar {
306+
position: static !important;
307+
display: block !important;
308+
min-width: 200px !important;
309+
max-width: 200px !important;
310+
max-height: none !important;
311+
margin-left: 0 !important;
312+
overflow: visible !important;
313+
}
314+
315+
.sidebar-wrapper {
316+
height: auto !important;
317+
overflow: visible !important;
318+
}
319+
320+
.app-header {
321+
position: static !important;
322+
}
323+
324+
.app-main {
325+
width: auto !important;
326+
max-width: 100% !important;
327+
overflow: visible !important;
328+
}
329+
330+
.app-content {
331+
overflow: visible !important;
332+
}
333+
334+
.app-footer {
335+
position: static !important;
336+
}
293337
}

0 commit comments

Comments
 (0)