mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Fix page header margin
This commit is contained in:
@@ -5,7 +5,7 @@ import { useShouldPadTitlebar } from '/@/hooks';
|
||||
const Container = styled(motion.div)``;
|
||||
|
||||
const Header = styled(motion.div)<{ $padRight?: boolean }>`
|
||||
margin-right: 170px;
|
||||
margin-right: ${(props) => props.$padRight && '170px'};
|
||||
padding: 1rem;
|
||||
-webkit-app-region: drag;
|
||||
|
||||
@@ -22,6 +22,8 @@ interface PageHeaderProps {
|
||||
export const PageHeader = ({ backgroundColor, children }: PageHeaderProps) => {
|
||||
const padRight = useShouldPadTitlebar();
|
||||
|
||||
console.log('padRight :>> ', padRight);
|
||||
|
||||
return (
|
||||
<Container
|
||||
animate={{
|
||||
|
||||
Reference in New Issue
Block a user