Skip to content
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

[Enhancement] Prevent drag-and-drop creating tree structure #3358

Closed
sith-on-mars opened this issue Jul 7, 2023 · 3 comments
Closed

[Enhancement] Prevent drag-and-drop creating tree structure #3358

sith-on-mars opened this issue Jul 7, 2023 · 3 comments

Comments

@sith-on-mars
Copy link

sith-on-mars commented Jul 7, 2023

Abstract

I would like to completely disable tree functionality. #1544 already provides a workaround. However, you're still allowed to create tree by using drag-and-drop. Would it be possible to prevent it so that we won't accidentally create tree structure?

Here is a short video about the issue I was talking about:

Screencast.from.2023-07-07.16-10-07.webm

I'm aware of other vertical tab addons that offer no tree structure, however, non of them really works as good as TST. Feel free to close this if it's outside the scope of TST.

Environment

  • Platform (OS): Fedoral Silverblue
  • Version of Firefox: latest
  • Version (or revision) of Tree Style Tab:
@irvinm
Copy link
Contributor

irvinm commented Jul 7, 2023

I know this doesn't solve exactly what you are looking for, BUT if you just wanted the tree to be "flattened" (although they are still trees) you can simply remove the indentation with some simple TST CSS. However, they are still trees and dragging and dropping would still be the same in terms of grabbing parents and their children.

:root .tab:not(.pinned)[data-level] {
	--tab-indent: 0px;
}

image

@piroor
Copy link
Owner

piroor commented Jul 27, 2023

This is beyond the scope of this project. TST is strongly designed to manage tree of tabs. I recommend you to choose another extension aims to provide flat tabs: https://github.com/piroor/treestyletab#similar-projects

@github-actions
Copy link

github-actions bot commented Aug 3, 2023

This issue has been closed due to no response within 7 days after labeled as "wontfix", 7 days after last reopened, and 7 days after last commented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants