For #15543 - Expand / collapse tabs tray depending on all tabs #15749
Conversation
Codecov Report
@@ Coverage Diff @@
## master #15749 +/- ##
==========================================
Coverage 29.76% 29.76%
+ Complexity 1191 1185 -6
==========================================
Files 453 453
Lines 18476 18496 +20
Branches 2539 2383 -156
==========================================
+ Hits 5500 5506 +6
- Misses 12557 12595 +38
+ Partials 419 395 -24 Continue to review full report at Codecov.
|
Rebased after the grid layout changes for tabs tray. |
Thanks for the ping! I will test this tomorrow morning and see how it interacts. I didn't see any UX feedback from @topotropic in the bugs mentioned, and an alarm kinda goes off internally for me when I see these kind of scenarios where we end up working on something prior to any UX investigation, which I always think becomes an awkward scenario for all of us. Would you be able to ping her to get some feedback? I could also be mistaken and that these conversations already took place, and if that is the case, let me apologize in advance. |
This patch just comes to complement what we're already doing when the tab tray first shows up. |
@topotropic Would you be able to give this a try and provide any feedback? I personally think it looks good, but I noticed that we don't scroll to the selected tab when we switch between normal and private tabs. |
I think it's also somewhat safe to say the grid layout is in a somewhat stable state. We are only working to align it more with the designs (something that I am not really good at). |
For showing the tab tray as collapsed / expanded we just counted the number of tabs to be displayed. I think we could also look into using another more suited height for the grid based collapsed tabs tray but if the changes are bigger I'd say it would be best to have a new ticket specifically for this. |
@Mugurell let's add a gif for @topotropic so she can review it quicker although my experience with trying out this PR is that it's best to try it with an apk. |
Updated the patch to set tabs tray as expanded / collapsed only when first showing on the screen, not also when changing what tabs to show. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
I see |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r+ assuming we make the changes.
Now check all tabs - private or normal and decide whether to show the tabs tray as expanded or collapsed depending on the highest number of tabs in any category. Also added support for the grid based tabs tray - will show tabs tray as expanded if there are more than 3 or more tabs (normal or private) open (this meaning two rows in the grid layout).
Now check all tabs - private or normal and decide whether to show the tabs tray
as expanded or collapsed depending on the highest number of tabs in any
category.
Also added support for the grid based tabs tray - will show tabs tray as
expanded if there are more than 3 or more tabs (normal or private) open
(this meaning two rows in the grid layout).
Pull Request checklist
To download an APK when reviewing a PR: