Skip to content
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

[2.1] & [3.0]: BBC img tag quirk: width scales if specified, but height does not in mobile view #8310

Open
sbulen opened this issue Sep 10, 2024 · 1 comment

Comments

@sbulen
Copy link
Contributor

sbulen commented Sep 10, 2024

Basic Information

When you have a large image, with width & height specified in the img tag, everything scales pretty good on desktop. Things get a little unpredictable on smartphones, though, or, when zooming in a significant amount on desktop.

The problem is that if the pic is too big to fit, width scales accordingly, but height does not... So specifying a height on a large image results in lots of deadspace above & below the image on mobile:

image

Best workaround I can find is to simply never use "height=" in img bbc.

Not sure what the fix is... If for nothing else, this is for awareness that wierdness happens when height is specified.

Steps to reproduce

  1. Insert a large image, 1000x800 or larger, specifying height & width.
  2. View it on mobile.

Expected result

If width is scaled for whatever reason, height should be scaled the same amount.

Actual result

Upon zooming, window-resizing, or mobile usage, width scales, but height remains constant.

Version/Git revision

3.0 Alpha 2 & 2.1.4

Database Engine

All

Database Version

8.4

PHP Version

8.3.8

Logs

No response

Additional Information

No response

@sbulen sbulen changed the title [2.1] & [3.0]: BBC img tag quirk: width scales if specified, but height is not in mobile view [2.1] & [3.0]: BBC img tag quirk: width scales if specified, but height does not in mobile view Sep 10, 2024
@sbulen
Copy link
Contributor Author

sbulen commented Sep 10, 2024

Same content above, but height removed from the img tag:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant