-
Notifications
You must be signed in to change notification settings - Fork 278
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
[Bug] group-tab.html & --column-width inconsistencies #3595
Comments
@piroor the failure is that the It looks to me that the Javascript around this should leave out the Not working - Single column being trimmedWorking - Single column not being trimmed |
I've realized that I missed labels are cropped in your screenshots. Long labels are not cropped and shown fully with line-breaks by default. These differences may affect to this problem. Do you use more other style rules? |
My CSS is related ... (Sigh, I am sorry about that). I removed everything and it worked. I then added back all group-tab and some other items until I was able to reproduce. I then started removing items until it went away and was left with this.
I had forgot that I had wanted each URL on the group-tabs page to be single line in nature (felt that was sufficient to understanding the destination) which involved changing some items around white-space and overflow. Without the "li" CSS, the multi-column URLs don't get clipped properly to stay within the column. Without the span.label items, individual line items on the group-tab page aren't restricted to 1 line. However, with both I see that single column pages sometimes work, but sometimes don't. (Per previous screenshots) In either case, this isn't a TST problem and hence closing. I will investigate further on my end. If anything jumps out at you, I would appreciate any feedback. |
Using just the CSS from above and inspecting group-tab examples of working and not working, I think I see why this CSS behaves differently. In cases that are working, the UL does not have a "column-width" style applied to it. Any LI items under it that are clipped should just be clipped to the parent UL which is not restricted. In cases that are failing, the UL has ... Since TST is applying that style, is it possible that TST isn't applying the style properly? Maybe I could try to step thru the code that applies the |
Ok, I have a reproducible scenario:
In both cases, it is the desired result that single-column rendering should not have the column-width applied. I am not sure why in this case one of the tabs works and the other does not. I am guessing there is something about the metadata and\or metadata length. I did start stepping thru the code and see that everything is being handled and applied here in the code blocks below. I will continue to investigate when I have time. treestyletab/webextensions/resources/group-tab.js Lines 503 to 509 in aeb6cad
treestyletab/webextensions/resources/group-tab.js Lines 585 to 615 in aeb6cad
|
Another example site: https://wallpaperswide.com/ Group tab that includes this site (clipped rows)Group tab by simply moving the tab outside (proper rows) |
Last example: https://github.com/kamranahmedse/developer-roadmap (clips when in, fine when out) It looks to me that it is related to the length of the "title" ... in each of these cases, these tabs had the longest "title" value. |
…oup tab more robustly, even if its appearance is modified by the user style sheet #3595
I've introduced a change 63b55b4 which changes the method to determine to show the tree in multiple columns or single column. TST shows the tree in multiple columns only when its actual height is larger than the container. It should work whether items are cropped or line-broken. |
I tried the latest dev build and everything seems to be working as expected now. Thank you so much! |
Abstract
Since #2607 (comment), this has generally worked well and group-tab.html pages with only 1 column was displayed with full width while multi-column were set to the value specified via --column-width. (No issues once multi-column kicks in)
However, in recent weeks\months, I am seeing group-tab.html examples with only one column that are being clipped to the --column-width value while they don't need to be.
Relevant CSS Used:
:root.group-tab { --column-width: 30em; }
Example 1 - Working Fine
Example 2 - Not Working
Example 3 - Not Working
Example 4 - Working Fine
Steps to reproduce
I'm still working on a more basic reproducible scenario, but wanted to see if you had any early thoughts.
Expected result
Actual result
Environment
The text was updated successfully, but these errors were encountered: