Open QR Label in modal instead of a new browser tab

Adds an embed mode to the Label view (hides standalone nav controls) and
an iframe-based modal on Inventory Details. The modal footer Print button
calls contentWindow.print() so the print dialog opens without spawning a
new window.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-23 09:32:57 -04:00
parent 64a9c1531b
commit 05935b110a
3 changed files with 40 additions and 4 deletions
@@ -22,6 +22,11 @@
min-height: 100vh;
}
body.embedded {
padding-top: 24px;
min-height: auto;
}
.screen-controls {
display: flex;
gap: 10px;
@@ -112,8 +117,10 @@
}
</style>
</head>
<body>
<body class="@((bool)(ViewBag.IsEmbed ?? false) ? "embedded" : "")">
@if (!(bool)(ViewBag.IsEmbed ?? false))
{
<div class="screen-controls">
<button class="btn btn-primary" onclick="window.print()">
&#128438; Print Label
@@ -122,6 +129,7 @@
&#8592; Back to Item
</a>
</div>
}
<div class="label-card">
<div class="label-logo">Powder Coating Logix</div>