-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(feat): Config to scale the patient identifier sticker content #2135
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @vasharma05
@@ -46,8 +46,8 @@ const PrintIdentifierSticker: React.FC<PrintIdentifierStickerProps> = ({ closeMo | |||
const handleAfterPrint = useCallback(() => { | |||
onBeforeGetContentResolve.current = null; | |||
setIsPrinting(false); | |||
closeModal(); | |||
}, [closeModal]); | |||
// closeModal(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this something you forgot re-enable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Size Change: +228 B (0%) Total Size: 15.9 MB ℹ️ View Unchanged
|
if (printWindow) { | ||
const printContent = printWindow.contentDocument || printWindow.contentWindow?.document; | ||
if (printContent) { | ||
printContent.documentElement.style.setProperty('--print-scale', printScale); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you @vasharma05, don't you think we should automate this? ie We scale basing on the sticker size and available window size.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it brings some level of complexity, we can leave it as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried automating this, but it didn't work for me. Can you help me in the same?
Thanks!
Requirements
Summary
This PR adds a new config point to scale the patient identifier sticker content to fit into the small page sizes.
Screenshots
Screen.Recording.2024-12-06.at.01.58.39.mov
Related Issue
None
Other