-
Notifications
You must be signed in to change notification settings - Fork 7
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
Zoom page content #20
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.
Excellent. I've not run the program yet, to get an idea about the outcome, but I like your attention to details.
Shall I support you on bringing in the zoom factor as option/setting?
Yes support would be fantastic thank you! I've had a lot of feedback that people couldn't read the text when posting widescreen videos on X/Twitter, and given the styling/studio settings do not work this is my solution which works quite well. I'm not even sure of the expected result from the styling as I've not seen it work...
Not sure your usecase was for timeseries panels? Or I may have misunderstood the options. But this was ideal for me to set step size and time range shown. |
738717f
to
ce46375
Compare
Hi @maurerle, it looks like @intermittentnrg also contributed more valuable improvements here, both within the PR, and possibly also about the With kind regards, |
Hi @amotl But I am more than happy that we got something working with latest grafana for now :) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #20 +/- ##
=======================================
Coverage 94.87% 94.87%
=======================================
Files 5 5
Lines 390 390
=======================================
Hits 370 370
Misses 20 20
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
cf385e4
to
b48944a
Compare
I originally sent ctrl+ to browser to zoom, but the screenshot un-zooms so I found this method instead.
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.
Hi @intermittentnrg,
I've extended your patch to make relevant new options configurable using --window-size
and --zoom-factor
, and added one question about its ingredients.
With kind regards,
Andreas.
self.set_window_size(1920, 1080) | ||
|
||
if self.window_size: | ||
self.set_window_size( | ||
int(self.window_size[0]), | ||
int(self.window_size[1] + (85 * self.zoom_factor)), | ||
) |
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 that height + 85 * self.zoom_factor
formula correct? Can you elaborate why "85" is used here?
85 was the height of the firefox chrome (location bar etc) and was being zoomed together with the page using this method if I recall correctly. |
I see. Thanks for clarifying. I will add this information per inline comment on the relevant spot. |
I originally sent ctrl+ to browser to zoom, but the screenshot unzooms so I found this method instead.
window size and zoom factor should be provided as options obviously...