Skip to content

Commit 05de366

Browse files
committed
Fix: replaced raw css with tailwind
1 parent b42040b commit 05de366

2 files changed

Lines changed: 3 additions & 13 deletions

File tree

packages/ui-components/Containers/MetaBar/index.module.css

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
py-6
1313
[overflow-wrap:anywhere]
1414
lg:sticky
15-
lg:top-0
16-
lg:max-h-screen
15+
lg:top-16
16+
lg:max-h-[calc(100vh-4rem)]
1717
lg:px-6
1818
dark:border-neutral-900;
1919

@@ -87,13 +87,3 @@
8787
.wrapper::-webkit-scrollbar {
8888
display: none;
8989
}
90-
91-
@media (min-width: 1024px) {
92-
.wrapper {
93-
max-height: calc(100vh - 4rem);
94-
padding-left: 1.5rem;
95-
padding-right: 1.5rem;
96-
position: sticky;
97-
top: 4rem;
98-
}
99-
}

packages/ui-components/Containers/MetaBar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const MetaBar: FC<MetaBarProps> = ({
4949
<ol>
5050
{filteredHeadings.map(head => (
5151
<li
52-
key={head.data.id}
52+
key={head?.data?.id}
5353
className={
5454
head.depth === 3 ? 'pl-2' : head.depth === 4 ? 'pl-4' : ''
5555
}

0 commit comments

Comments
 (0)