Skip to content

Commit 3ae3a83

Browse files
authored
Merge branch 'new-ui' into e2e-integrations
2 parents 691e587 + 4b36e8d commit 3ae3a83

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/components/atoms/Tabs.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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'

src/components/molecules/headers/WorkspaceHeader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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'>

0 commit comments

Comments
 (0)