Open nhan000 opened 3 years ago
Thanks for the suggestions! Technically rendering tabs in multiple rows is not so trivial because the tabs are rendered inside of an iframe. To wrap the tabs, the plugin may need to take multiple factors to make sure the iframe height is calculated correctly. Another issue here is that the white space at the last row will be the tabs iframe, which may prevent the user from interacting with the main view and surprises the user.
You mean that if the tabs are rendered in multiple rows it will start obscuring the information in the main view (the title of the page, the path to current block, etc.?). I have no background in programing so I don't know hard it is to do this. I suggest:
I think one option is to follow what Chrome does. Instead of having multiple rows of tabs, just shrink each item when there is not enough space like this:
that works too!
I am working with a new lib that I found today "dnd-kit". Some progress so far https://stackblitz.com/edit/vitejs-vite-8penyc
I'd be happy to look into this. Currently there seems to be some strange bug, where opening more than 5-6 tabs causes constant switching between the last two.
I usually have a pdf file opened and also the right sidebar, which takes up lots of space. If I open more than 5 - 6 tabs then the right most ones will be obscured by the right sidebar. Shift + scroll currently helps me navigate all the opened tabs but I was wondering if instead of expanding to the right, they can be in rows so that they're always visible. That would help me keeping tracks of the tabs I have opened much easier. Thanks so much for the great plugin!