Skip to content

Commit

Permalink
fix: correct space between tabs (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
smeijer committed Dec 3, 2020
1 parent 351c6ff commit 0e5d597
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/components/Playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ function Playground() {
</div>
</div>

<div className="flex-none h-3" />
<PlaygroundPanels />
</div>
</Layout>
Expand Down
13 changes: 7 additions & 6 deletions src/components/PlaygroundPanels.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,20 @@ function PlaygroundPanels() {

return (
<>
<div className="px-4 gap-4 flex py-2">
{panels.map((panelName) => (
<div key={panelName} className="flex items-center">
<div className="text-left space-x-2">
<div className="px-4 gap-4 flex pt-3 pb-1 h-8">
<div className="flex items-center">
<div className="text-left space-x-2">
{panels.map((panelName) => (
<TabButton
key={panelName}
onClick={() => setPanel(panelName)}
active={panelName === panel}
>
{panelName}
</TabButton>
</div>
))}
</div>
))}
</div>
</div>
<Suspense fallback={null}>
{panel === panels[0] && (
Expand Down

0 comments on commit 0e5d597

Please sign in to comment.