Skip to content

Commit

Permalink
fix: list default position
Browse files Browse the repository at this point in the history
  • Loading branch information
SoYoung210 committed Mar 3, 2024
1 parent 0e9ef94 commit 6d57c25
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
9 changes: 0 additions & 9 deletions src/components/content/menu-dock/MenuDock.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { styled } from '@stitches/react';
import { useState } from 'react';

import { Direction, MenuDockProvider } from './context';
Expand All @@ -22,11 +21,3 @@ export default function MenuDock({ children, initialIndex }: MenuDockProps) {
</MenuDockProvider>
);
}

export const MenuDockList = styled('div', {
position: 'absolute',
display: 'flex',
// TODO: DockContent 높이 + 여백값으로 변경
top: 340,
left: 0,
});
12 changes: 9 additions & 3 deletions src/pages/dock-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import { styled } from '../../stitches.config';
import { GRADIENT_IMAGES } from '../components/content/menu-dock/constant';
import { DockContent } from '../components/content/menu-dock/DockContent';
import { DockItem } from '../components/content/menu-dock/DockItem';
import MenuDock, {
MenuDockList,
} from '../components/content/menu-dock/MenuDock';
import MenuDock from '../components/content/menu-dock/MenuDock';
import PageLayout from '../components/layout/page-layout/PageLayout';
import SEO from '../components/layout/SEO';

Expand Down Expand Up @@ -148,6 +146,14 @@ export default function MenuDockPage() {
);
}

export const MenuDockList = styled('div', {
position: 'absolute',
display: 'flex',
// TODO: DockContent 높이 + 여백값으로 변경
top: 340,
left: 0,
});

const PageContentRoot = styled('div', {
position: 'relative',
height: 406,
Expand Down

0 comments on commit 6d57c25

Please sign in to comment.