Skip to content

Commit

Permalink
fix content jumping
Browse files Browse the repository at this point in the history
  • Loading branch information
layerok committed Jun 30, 2024
1 parent 074daee commit 4c2be0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/components/Tabs/Tabs.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
.tabs {
display: flex;
border-bottom: 1px solid #eee;
height: 40px;
}

.tab {
display: flex;
align-items: center;
position: relative;
padding: 8px 16px;
cursor: pointer;
Expand Down
4 changes: 0 additions & 4 deletions src/components/Tabs/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,6 @@ export function Tabs(props: TabsProps) {
}
}, [startPinnedTabs, setStartPinnedTabs]);

if (tabs.length < 1) {
return null;
}

return (
<div className="tabs">
{tabs.map((tab) => (
Expand Down

0 comments on commit 4c2be0d

Please sign in to comment.