Skip to content

Commit a4796fe

Browse files
committed
fix: app bar position
1 parent 3530ce2 commit a4796fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/ElevatedAppBar.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ const ElevatedAppBar: React.FC<ElevatedAppBarProps> = ({ props, children }) => {
2323
{children}
2424
</Toolbar>
2525
</AppBar>,
26-
{ elevation: trigger ? 4 : 0 }
26+
{
27+
elevation: trigger ? 4 : 0,
28+
position: trigger ? 'fixed' : 'sticky'
29+
}
2730
);
2831
};
2932

0 commit comments

Comments
 (0)