Small change to public.php #3113
Replies: 3 comments 5 replies
-
|
@Jonk2, even though you may be the only one who uses public.php, I will test the change and put it in the next major release. :-) |
Beta Was this translation helpful? Give feedback.
-
|
@Jonk2, Jon, It appears that the fix to:
is to include the max-height here as well: (I was thinking of a different flashing problem in a prior comment. That was resolved by pre-loading, which has been implemented.) |
Beta Was this translation helpful? Give feedback.
-
|
@EricClaeys when I tested it on Firefox, Edge (Windows) and Safari (ios), I didn't see any distortion. The more recent versions of allsky don't show the image flashing in Firefox (previously discussed) as they're rendered by the browser any more, but my point was using a viewport resize, I noticed the full size rendered image is displayed, then resized, causing a noticable flash - this may be browser specific though. Did you notice this when having a look? |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
I've always disliked the way the public.php image is shown at 100% width, so for me, I've manually changed the following in allskyl/html:
from...
newImg.style = "width: 100%";
to..,
newImg.style = "max-height: 100vh; max-width: 100%";
What this does, is rather than show the image at 100% width, which only shows the top 3/4 of the image (meaning scrolling to see any overlay data at the bottom), it shows the full image but limits the size depending on viewport (not display) height and width. It should never hide any of the image when resizing the browser window.
I've tested on Firefox and Edge on PC, and Safari on an iphone.
Easy for anyone to try, so I hope you consider this as an improvement idea.
Beta Was this translation helpful? Give feedback.
All reactions