Google search expanding images vertically

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
Falna
Astronaut
Astronaut
Posts: 527
Joined: 2015-08-23, 17:56
Location: UK / France

Google search expanding images vertically

Unread post by Falna » 2024-07-17, 21:01

Just spotted that, when using Google Search for a topic that returns images at the top, those images expand uncontrolled vertically...

Example:

https://www.google.com/search?q=New+York

Partial screen-shot:
Google.png
You do not have the required permissions to view the files attached to this post.

Forked extensions :
● Add-ons Inspector ● Auto Text Link ● Copy As Plain Text ● Copy Hyperlink Text ● FireFTP button replacement ● gSearch Bar ● Navigation Bar Enhancer ● New Tab Links ● Number Tabs ● Print Preview Button and Keyboard Shortcut 2 ● Scrollbar Search Marker ● Simple Marker ● Tabs To Portfolio ● Update Alert ● Web Developer's Toolbox ● Zap Anything

Hint: If you expect a reply to your PM, allow replies...

BenFenner
Keeps coming back
Keeps coming back
Posts: 823
Joined: 2015-06-01, 12:52
Location: US Southeast

Re: Google search expanding images vertically

Unread post by BenFenner » 2024-07-18, 01:40

Quick check over here and I was unable to reproduce this.

User avatar
Kxeon
Apollo supporter
Apollo supporter
Posts: 33
Joined: 2024-05-09, 20:04

Re: Google search expanding images vertically

Unread post by Kxeon » 2024-07-18, 13:25

Falna wrote:
2024-07-17, 21:01
Just spotted that, when using Google Search for a topic that returns images at the top, those images expand uncontrolled vertically...
Searching up Republika Srpska doesn't expand completely uncontrollably.
However I do remember they expanded like how you said before and took up the entire screen that one time. Unable to reproduce that.
I just use Whoogle nowadays. (I hope that what i just said doesn't age poorly)
You do not have the required permissions to view the files attached to this post.
To see a portion of my specs (CPU, GPU, Laptop Model, OS, and RAM) if not said already, go to my Bio

Falna
Astronaut
Astronaut
Posts: 527
Joined: 2015-08-23, 17:56
Location: UK / France

Re: Google search expanding images vertically

Unread post by Falna » 2024-07-19, 00:17

BenFenner wrote:
2024-07-18, 01:40
Quick check over here and I was unable to reproduce this.
Still doing it for me in my regular setup + a clean version of PM Portable...
Kxeon wrote:
2024-07-18, 13:25
Searching up Republika Srpska doesn't expand completely uncontrollably.
...Yes, Republika Srpska expands then stops much sooner. I wonder if that's something to do with the speed of turnover of the images of the page:
2.png
In your case it is expanding excessively, but stopping perhaps a little sooner than mine. Maybe linked to the PC spec?

How it looks in Chrome:
3.png
You do not have the required permissions to view the files attached to this post.

Forked extensions :
● Add-ons Inspector ● Auto Text Link ● Copy As Plain Text ● Copy Hyperlink Text ● FireFTP button replacement ● gSearch Bar ● Navigation Bar Enhancer ● New Tab Links ● Number Tabs ● Print Preview Button and Keyboard Shortcut 2 ● Scrollbar Search Marker ● Simple Marker ● Tabs To Portfolio ● Update Alert ● Web Developer's Toolbox ● Zap Anything

Hint: If you expect a reply to your PM, allow replies...

User avatar
gepus
Board Warrior
Board Warrior
Posts: 1006
Joined: 2017-12-14, 12:59

Re: Google search expanding images vertically

Unread post by gepus » 2024-07-19, 09:07

Falna wrote:
2024-07-17, 21:01
Just spotted that, when using Google Search for a topic that returns images at the top, those images expand uncontrolled vertically...

Example:

https://www.google.com/search?q=New+York
Out of curiosity.
How about with: https://www.google.com/search?q=new+york&ie=utf-8&oe=utf-8&num=100&hl=en ?

Falna
Astronaut
Astronaut
Posts: 527
Joined: 2015-08-23, 17:56
Location: UK / France

Re: Google search expanding images vertically

Unread post by Falna » 2024-07-19, 11:35

gepus wrote:
2024-07-19, 09:07
Out of curiosity.
How about with: https://www.google.com/search?q=new+york&ie=utf-8&oe=utf-8&num=100&hl=en ?
Yes, for New york, adding num=100 to the search string (or restricting it to any other number of results) fixes it, by forcing a second column. That also works for many others - such as https://www.google.com/search?q=London&num=100
https://www.google.com/search?q=hong+kong&num=100 and
https://www.google.com/search?q=poland&num=100

However it doesn't work for Republika Srpska (though, as above, that was exhibiting somewhat different behavior).

Forked extensions :
● Add-ons Inspector ● Auto Text Link ● Copy As Plain Text ● Copy Hyperlink Text ● FireFTP button replacement ● gSearch Bar ● Navigation Bar Enhancer ● New Tab Links ● Number Tabs ● Print Preview Button and Keyboard Shortcut 2 ● Scrollbar Search Marker ● Simple Marker ● Tabs To Portfolio ● Update Alert ● Web Developer's Toolbox ● Zap Anything

Hint: If you expect a reply to your PM, allow replies...

User avatar
Kxeon
Apollo supporter
Apollo supporter
Posts: 33
Joined: 2024-05-09, 20:04

Re: Google search expanding images vertically

Unread post by Kxeon » 2024-07-20, 19:36

Drats. I thought that the bug didn't work on my PC, but as it turns out, it does. I don't know what happened, probably because the images were on the right-hand side instead of the top, but they expand.
So it's just that thing at the top, ig.
Hmm.. I just used Inspect Element and found a variable on the expanding thingies. aria-atomic=true.
I have no idea what happens when you set it to false when the page is loading because I can't. Inspect Element doesn't load in time.
You do not have the required permissions to view the files attached to this post.
To see a portion of my specs (CPU, GPU, Laptop Model, OS, and RAM) if not said already, go to my Bio

Falna
Astronaut
Astronaut
Posts: 527
Joined: 2015-08-23, 17:56
Location: UK / France

Re: Google search expanding images vertically

Unread post by Falna » 2024-07-20, 20:08

Kxeon wrote:
2024-07-20, 19:36
Hmm.. I just used Inspect Element and found a variable on the expanding thingies. aria-atomic=true.
I have no idea what happens when you set it to false when the page is loading because I can't. Inspect Element doesn't load in time.
Looks like aria-atomic is a flag for screen readers, so doubt that's the problem - https://www.holisticseo.digital/technic ... ria-atomic

Forked extensions :
● Add-ons Inspector ● Auto Text Link ● Copy As Plain Text ● Copy Hyperlink Text ● FireFTP button replacement ● gSearch Bar ● Navigation Bar Enhancer ● New Tab Links ● Number Tabs ● Print Preview Button and Keyboard Shortcut 2 ● Scrollbar Search Marker ● Simple Marker ● Tabs To Portfolio ● Update Alert ● Web Developer's Toolbox ● Zap Anything

Hint: If you expect a reply to your PM, allow replies...

Kris_88
Board Warrior
Board Warrior
Posts: 1101
Joined: 2021-01-26, 11:18

Re: Google search expanding images vertically

Unread post by Kris_88 » 2024-07-21, 22:18

Strange problem probably related to CSS "flex".

This seems to work:

userContent.css :

Code: Select all

@-moz-document url-prefix("https://www.google.com/search") { 
  div[role="complementary"] > div { flex: unset !important; }
}

Falna
Astronaut
Astronaut
Posts: 527
Joined: 2015-08-23, 17:56
Location: UK / France

Re: Google search expanding images vertically

Unread post by Falna » 2024-07-22, 21:40

Kris_88 wrote:
2024-07-21, 22:18
This seems to work
Yes, that's a good workaround - thanks :)

Forked extensions :
● Add-ons Inspector ● Auto Text Link ● Copy As Plain Text ● Copy Hyperlink Text ● FireFTP button replacement ● gSearch Bar ● Navigation Bar Enhancer ● New Tab Links ● Number Tabs ● Print Preview Button and Keyboard Shortcut 2 ● Scrollbar Search Marker ● Simple Marker ● Tabs To Portfolio ● Update Alert ● Web Developer's Toolbox ● Zap Anything

Hint: If you expect a reply to your PM, allow replies...