-
Notifications
You must be signed in to change notification settings - Fork 279
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] Overlay with Tabs Overview: Narrow size breaks presentation #3412
Comments
It is a restriction of a WebExtensions based addon. We cannot show a popup wider than the sidebar area in regular way (we can open a new browser window and use it as a popup, but it means that the popup has a title bar and window controls - I think we can't accept such a "rich" tooltip!) Currently TST just sets long long text as a "title" attribute of the element and Firefox shows it as a tooltip. The size of the tooltip is automatically calculated by Firefox and it is uncontrollable by addon. |
@piroor given there is not a bug/enhancement upstream to change this behavior, we should probably just close this as a limitation. |
Just my opinion on this topic, but I might suggest 2 other things to think about and/or consider.
Here is an screenshot of how this ended up looking like for me. I would imagine the tooltip would benefit from this (maybe as an option?) and would be pretty easy to do. |
Current tooltip is completely processed by Firefox's tooltip mechanism, and it just shows given text as |
That is unfortunate in terms of an easy solution ... maybe your solution 2 might be an interesting choice then. |
Plan 1, operations done by the sidebar and content scripts. Players are:
When we need to show a tab preview:
When we need to hide a tab preview:
Plan 2, operations proxied by the background script. Players are:
When we need to show a tab preview:
When we need to hide a tab preview:
I'm not sure for now that a sidebar script can generate a thumbnail image of a tab safely, so the plan 2 is a backup. |
This issue has been labeled as "stale" due to no response by the reporter within 1 year (and 7 days after last commented by someone). And it will be closed automatically 14 days later if not responded. |
This issue has been labeled as "stale" due to no response by the reporter within 1 year (and 7 days after last commented by someone). And it will be closed automatically 14 days later if not responded. |
This issue has been labeled as "stale" due to no response by the reporter within 1 year (and 7 days after last commented by someone). And it will be closed automatically 14 days later if not responded. |
It seems to be expected by the system, that I comment here somehow. |
* Prepare frame contents to render tab preview tooltip #3412 * Add comments to describe the design of the module * Implement events to track mouseenter/leave on tab substances * Send show/hide preview message to the active tab #3412 * Send message to show tab preview with preview URL * Show tab preview * Remove needless parameter * Simulate behavior of the native tab preview panel #3412 * Fix indent * Apply appearance same to the native tab preview panel as possible as we can #3412 * Cleanup old subframes #3412 * Don't try to capture discarded tabs #3412 * Cleanup cached tab object to avoid mismatched relation * Make more safe for invalid tab case * Show tab preview panel with fixed width * Use internal name same to Firefox's one * Suppress error about sending message to special tabs * Clear preview when active tab is switched * Re-prepare frame to show tab preview tooltip automatically * Hide tab preview panel when the sidebar is closed * Cleanup needless iframe * Hide tab preview tooltip when the tab is detached * Destroy and reconstruct frame more safely * Show tab preview panel with expected scale in zoomed tabs * Apply platform specific appearance correctly * Don't apply opacity animation while updating * Position tab preview in better coordinates even if the sidebar header is shown. * Fix mispositioning in zoomed contents * Ignore delayed messages * Suppress regular tooltip when in-content tab previw tooltip is not available * Calculate offset more correctly * Show tab preview panel near the sidebar * Deactivate tab preview tooltip by default * Show tab preview tooltip in the sidebar if the tab contents is privileged * Calculate size and position of the tab preview tooltip more correctly * Don't try to embed tab preview tooltip in other addon's contents * Show tab preview tooltip as soon as possible * Fallback to in-sidebar tab preview tooltip if the active tab is privileged * Add an option UI for tab preview panel
I've implemented the simulated tab preview. It requires It is disabled by default and you need to activate manually from the "Appearance" section in the options page of TST. |
@piroor is your plan (long term) to "replace" the existing functionality with this or make this a new option? The reason I ask is that there is definitely some usefulness of being able to hover over a collapsed tree and seeing the text listing of all of the tabs under that tree. While the new hover and rich view of that tab is great, some people may miss out on the other functionality. Obviously, you can get the same information if those tabs are children of a group-tab, but if not, there is no easy way to inspect the children quickly. Just something to consider. I use group-tabs a lot, so I don't normally leave the tooltip turned on, but others might. (Or maybe support both with one as the default for hover and the other with something like shift+hover?) |
Your concern is reasonable. Now we just stand at the starting point, and we need to think about how to combine the tree information view with the in-content tab preview as the next step - for example, simple embedding of the tree into the panel instead of the preview image for a collapsed tree. |
After more development, the in-content tab preview panel now can show custom tooltip contents with better appearance. It's not exclusive anymore. |
Abstract
Steps to reproduce
Expected result
The overlay is wide enough to shows all lines without line breaks
Actual result
The overlay seems to have a maximum width (although the screen has way mode space).
Thus the long items have a line break, which spoils the hierarchical structure:
Environment
The text was updated successfully, but these errors were encountered: