File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const Tabs = () => {
1818 const activeTabStyles =
1919 'before:absolute before:h-[0.25rem] before:w-full before:bg-slate-300 before:content-[""] before:bottom-0 before:left-0' ;
2020 const tabCommonStyles =
21- 'tab flex items-center gap-x-2 border-r border-neutral-300 bg-transparent pr-0 tracking-[0.15em] transition duration-500 ease-in text-sm' ;
21+ 'tab flex items-center gap-x-2 border-r border-neutral-300 bg-transparent pr-0 tracking-[0.15em] transition duration-500 ease-in text-sm flex-nowrap ' ;
2222 const messageForConfirmActionModal = `You have unsaved changes in the ${ focusTab ?. type } , are you sure you want to close it?` ;
2323
2424 const handleCloseTab = ( event , tab ) => {
@@ -45,9 +45,10 @@ const Tabs = () => {
4545 } ;
4646
4747 return (
48- < div role = 'tablist' className = 'tabs tabs-lg' >
48+ < div role = 'tablist' className = 'overflow-scroll tabs tabs-lg' >
4949 { tabs
5050 // tabs belonging to one collection will be shown at a time
51+ . reverse ( )
5152 . filter ( ( t ) => t . collectionId === focusTab . collectionId )
5253 . map ( ( tab , index ) => {
5354 return (
@@ -62,7 +63,7 @@ const Tabs = () => {
6263 data-id = { tab . id }
6364 data-collection-id = { tab . collectionId }
6465 >
65- < a > { tab . name } </ a >
66+ < a className = 'text-nowrap' > { tab . name } </ a >
6667 { /* close needs to be a separate clickable component other wise it gets confused with above */ }
6768 < div
6869 className = 'flex items-center h-full px-2 hover:rounded hover:rounded-l-none hover:bg-slate-200'
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const WorkspaceHeader = () => {
1515
1616 return (
1717 < div className = 'flex items-center justify-between gap-8 border-b border-neutral-300 bg-slate-100 pr-4' >
18- < div className = 'flex items-center' >
18+ < div className = 'flex items-center overflow-scroll ' >
1919 < Tabs />
2020 < button className = 'flex cursor-not-allowed flex-col items-center bg-slate-100 p-3.5 text-center text-slate-400' >
2121 < Tippy content = 'Coming Soon!' placement = 'right' >
You can’t perform that action at this time.
0 commit comments