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:
@@ -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()">
|
||||
🖶 Print Label
|
||||
@@ -122,6 +129,7 @@
|
||||
← Back to Item
|
||||
</a>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="label-card">
|
||||
<div class="label-logo">Powder Coating Logix</div>
|
||||
|
||||
Reference in New Issue
Block a user