mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-07 05:33:27 +00:00
parent
a827fa382d
commit
5e3802a424
|
@ -109,7 +109,10 @@ function Tabs() {
|
|||
>
|
||||
{ctx.tabs.map(({ title }, index) => (
|
||||
<button
|
||||
onClick={() => ctx.setTabIndex(index)}
|
||||
onClick={(e) => {
|
||||
if (e.button === 0) ctx.setTabIndex(index);
|
||||
else if (e.button === 1) removeTab(index);
|
||||
}}
|
||||
className={clsx(
|
||||
'duration-[50ms] group relative flex h-full min-w-[10rem] shrink-0 flex-row items-center justify-center px-8 text-center',
|
||||
ctx.tabIndex === index
|
||||
|
|
Loading…
Reference in a new issue