-
Notifications
You must be signed in to change notification settings - Fork 14
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: add screenshot plugin #451
Conversation
Hello. please I need more clarification of the above: Because this was my thought process: whenever I have a work flow in progress, and I click Which of these step is best approach:
|
It seems that I have written this when I reached an errored out state due to 3.) |
…(royalty-free camera-shutter)
The above observations were fixed in the latest push and as follows:
|
…-desktop into screenshot-plugin for new push
Thank you, great work! If the screenshot preview window could be made taller, that would be fantastic, as the buttons would be fully visible. |
Thank you for the screenshots. I use a lower resolution, which is why I encountered the issue. Apologies, the +160 increase is probably unnecessary. The suggested code modifications provide a good view for me at multiple resolutions (Default, More Space). |
Alright. I appreciate. Please, just to clarify, should I revert back to initial default or we keep the +160? |
Please revert to initial default. |
Ok. I've reverted it. |
const scaleFactor = primaryDisplay.scaleFactor | ||
|
||
const defaultScreenSize = { | ||
width: (width / resizeBy) * scaleFactor + 160, |
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.
width: Math.floor((width / resizeBy) * scaleFactor),
height: Math.floor((height / resizeBy) * scaleFactor),`
`
img { | ||
display: block; | ||
max-width: 90%; | ||
max-height: 720px; |
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.
max-height: 640px;
|
||
previewWindow = new BrowserWindow({ | ||
width: defaultScreenSize.width, | ||
height: defaultScreenSize.height, |
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.
useContentSize: true,
PR to merge screenshot plugin