-
-
Notifications
You must be signed in to change notification settings - Fork 895
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
Fix OSD preview #3101
Fix OSD preview #3101
Conversation
This comment has been minimized.
This comment has been minimized.
AUTOMERGE: (FAIL)
|
src/css/tabs/osd.less
Outdated
width: 350px; | ||
max-width: max(min(950px,calc((100vh - 470px) * 1.25)), 350px); | ||
width: 740px; | ||
max-width: max(min(950px,calc((100vh - 470px) * 1.25)), 740px); |
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.
The problem here is the "size" of the char that contains the symbol. It is 12x18 and we don't reduce it because it almost disappears because the reduction algorithm done by the browser works very bad with character images.
Until now, PAL and NTSC have 30 columns, so 30 x 12 = 360 px (the CSS rule was wrong by 10 pixels). Now, in HD it contains 53 columns, so the minimum must be 53 x 12 = 636.
This will make difficult to fit all without flexing, so the better approach is to give different sizes for both systems, at least PAL and NTSC will fit better. We have the code to add a class, and use different backgronds depending on the video system before this PR #3071 that removed it because it was not needed anymore.
So, two options:
- Solution 1: simply use 636 as maximum
- Solution 2: add the code removed in the PR to add a class based on the video system, and use 360 by default and 636 for HD.
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. Tried 636 but getting same behavior.
94b02dc
to
9f5e0e8
Compare
9f5e0e8
to
5b22849
Compare
Reverted for now. |
This comment has been minimized.
This comment has been minimized.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Do you want to test this code? Here you have an automated build: |
Looks to be working well, resizes the preview area and then moves columns underneath. HD-preview-test.mp4 |
Android OSD preview isn't completely broken but the contents need to be aligned left and scaled. Android-HD-OSD.mp4 |
On Samsung Galaxy S7 (SM-935F) with resolution 1440 x 2560 pixels the preview fills the screen (aligned left), What is the screen resolution of your device? |
In my case, pixel 4 with 2280 × 1080. |
Sony Xperia 1 III, resolution 1644 x 3840. Guess it's down to the screen scaling. I am also running HD OSD. |
Not sure how we are going to solve this for different resolutions as I have added a media query kicking in at 1455px or below and a, second at 1200px or below. They are based on FHD desktop screen (android does not have the menu visible as desktop does - this makes scaling even harder). Maybe it would work better with the side panels dropped down below the preview as default on all platforms so we can use max instead of min. Happy to have some suggestions as I'm running out of idea's looking at the following table:
|
Could we scale the preview window on mobile? I know on desktop we want to avoid this but on mobile the touch targets are already challenging anyway. Losing fidelity in the fonts isn't a big deal on very small screens. |
Fixes: #3100