firefox-gnome-theme icon indicating copy to clipboard operation
firefox-gnome-theme copied to clipboard

Tabs are sometimes not resizing

Open SeaDve opened this issue 3 years ago • 11 comments

When I closed a tab, there are times where the tabs will not have an equal length. For example, there are 4 tabs, I closed a tab so there will be 3 left, they are supposed to take 33.33% of the area of the tab bar but instead it is 25%, 25%, and 50%.

SeaDve avatar Nov 16 '20 01:11 SeaDve

I have seen that bug before, but probably is related to the Firefox tabs JS logic, so I don't think we can do much.

Usually I have many tabs open, so I don't see it often.

rafaelmardojai avatar Nov 16 '20 15:11 rafaelmardojai

I can reproduce this locally as well: https://youtu.be/K6g6IDn8oFY

nickavem avatar Feb 17 '21 18:02 nickavem

@nickavem pretty sure that's an intentional firefox feature, so that you can close many tabs without having to move your mouse every time (since the close button stays in the same place)

lunaneff avatar Jan 01 '22 19:01 lunaneff

@nickavem this is actually the correct behavior.

However, it sometimes happens that tabs get resized incorrectly and at the wrong time.

https://user-images.githubusercontent.com/77749247/166567984-794a8bda-2371-461c-aa3c-7cf7d5756e72.mp4

danielwolbach avatar May 03 '22 21:05 danielwolbach

Is there any progress on this issue? It's really annoying and weird because sometimes the tabs are working properly, but then they do this after some time:

@nickavem this is actually the correct behavior.

However, it sometimes happens that tabs get resized incorrectly and at the wrong time. Firefox.GNOME.Theme.Bug.mp4

sajmon170 avatar Oct 02 '22 15:10 sajmon170

@sajmon170 after the tabs rework for libadwaita-1.2 it has been consistent working fine for me, could you test the branch? https://github.com/rafaelmardojai/firefox-gnome-theme/tree/libadwaita-1.2

rafaelmardojai avatar Oct 07 '22 18:10 rafaelmardojai

@sajmon170 after the tabs rework for libadwaita-1.2 it has been consistent working fine for me, could you test the branch? https://github.com/rafaelmardojai/firefox-gnome-theme/tree/libadwaita-1.2

@rafaelmardojai I've been testing this branch and it seems to work most of the time, but has the same problem as before (it reappeared today): Screenshot from 2022-10-10 10-24-59 Also, the tab closing feels a bit clunky - when you close a tab the one on its left tries to resize itself for a while, then jumps back to its previous (proper) size because the mouse cursor is still on the tab bar.

sajmon170 avatar Oct 10 '22 08:10 sajmon170

@rafaelmardojai I found that the incorrect tab behavior gets triggered by enabling and pausing audio playback.

Steps to reproduce:

  1. Open a bunch of tabs
  2. Open a random YouTube video
  3. Pause it after it started playing sound
  4. Try to close tabs other than the YouTube one.

Steps 1 and 2 can be reversed. Step 3 seems to be necessary. This triggers the problem in both normal and private browsing mode. Maybe it has something to do with the "speaker" icon appearing on tabs playing sound?

sajmon170 avatar Oct 15 '22 09:10 sajmon170

I'm on v115 of Firefox and your theme and I am still seeing this issue pop up, of having one tab size be off compared to all the others when closing tabs and it can still be triggered by playing/pausing audio playback, like the previous users have mentioned.

Any progress on this in 2023? Please let me know if there's any additional information you may need, thank you.

Scotty-Trees avatar Jul 15 '23 14:07 Scotty-Trees

I'm on v115 of Firefox and your theme and I am still seeing this issue pop up, of having one tab size be off compared to all the others when closing tabs and it can still be triggered by playing/pausing audio playback, like the previous users have mentioned.

Any progress on this in 2023? Please let me know if there's any additional information you may need, thank you.

No progress for now. I will try to revisit the bug these days. But it's a problem caused by the full width tabs code, so enabling gnomeTheme.normalWidthTabs might be a workaround.

rafaelmardojai avatar Jul 15 '23 15:07 rafaelmardojai

Thanks for the reply Rafael. I'll give the gnomeTheme.normalWidthTabs workaround a try in the meantime and see how that goes. If and when you do revisit the bug, feel free to ping me if you need any extra eyes testing since I can trigger the bug currently pretty easily.

Scotty-Trees avatar Jul 15 '23 15:07 Scotty-Trees