ungoogled-software/ungoogled-chromium

Increase width and height of the chrome extension's popup

Open

#3,018 opened on Sep 5, 2024

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Python (771 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (18,674 stars)
PR merge metrics
 (Avg merge 1d 11h) (9 merged PRs in 30d)

Description

Description

Increase the width and height of the chrome extension's popup page

Who's implementing?

  • I'm willing to implement this feature myself

The problem

Currently in the source code of Chromium, there is a piece of code about the width and height of the popup page for chrome extensions. But this part of the code is the hard code and cannot be changed. static constexpr gfx::Size kMaxSize = {800, 600};

refer to this link.

  // The min/max height of popups.
  // The minimum is just a little larger than the size of the button itself.
  // The maximum is an arbitrary number and should be smaller than most screens.
  static constexpr gfx::Size kMinSize = {25, 25};
  static constexpr gfx::Size kMaxSize = {800, 600};

Another reference : https://stackoverflow.com/q/74963536 https://stackoverflow.com/q/8983165

Possible solutions

Hope that the Ungoogled-Chromium team can make this part of the code kMaxSize larger, such as {3000, 2000} or {1600, 1000} . Or provide a option for users to customize, or delete this line.

Because current resolution of 4k monitors is 3840 × 2160 or 4096 × 2160. With the development of the times, the resolution of the display is also increasing, so in order to match today's display resolution, hope to modify this part of the code.

Or through other methods, the ultimate goal is to increase the size of the popup window when using the Chrome extension.

Thank you!

Alternatives

No response

Additional context

No response

Contributor guide