Skip to content

Commit

Permalink
docs(nxdev): add bottom margin and reduce padding on ui tabs (#14119)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcabanes committed Jan 3, 2023
1 parent 843bad1 commit 40e924a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nx-dev/ui-markdoc/src/lib/tags/tabs.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function Tabs({
aria-selected={label === currentTab}
onClick={() => setCurrentTab(label)}
className={cx(
'whitespace-nowrap border-b-2 border-transparent py-4 px-2 text-sm font-medium',
'whitespace-nowrap border-b-2 border-transparent p-2 text-sm font-medium',
label === currentTab
? 'border-blue-500 text-slate-800 dark:border-sky-500 dark:text-slate-300'
: 'text-slate-500 hover:border-blue-500 hover:text-slate-800 dark:text-slate-400 dark:hover:border-sky-500 dark:hover:text-slate-300'
Expand Down Expand Up @@ -57,5 +57,9 @@ export function Tab({
return null;
}

return <div className="prose prose-slate dark:prose-invert">{children}</div>;
return (
<div className="prose prose-slate dark:prose-invert mt-4 max-w-none">
{children}
</div>
);
}

1 comment on commit 40e924a

@vercel
Copy link

@vercel vercel bot commented on 40e924a Jan 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx.dev
nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app

Please sign in to comment.