diff --git a/src/components/Atoms/Button.tsx b/src/components/Atoms/Button.tsx index 12f9f9f0..52607ae3 100644 --- a/src/components/Atoms/Button.tsx +++ b/src/components/Atoms/Button.tsx @@ -39,7 +39,7 @@ interface ButtonProps { className?: string; $loading?: boolean; disabled?: boolean; - onClick?: () => void; + onClick?: (e: React.MouseEvent) => void; color?: string; type?: 'button' | 'submit' | 'reset' | undefined; } diff --git a/src/pages/circle/home/components/WebSlider/CircleWebSlideCard.tsx b/src/pages/circle/home/components/WebSlider/CircleWebSlideCard.tsx index e120427f..f627a249 100644 --- a/src/pages/circle/home/components/WebSlider/CircleWebSlideCard.tsx +++ b/src/pages/circle/home/components/WebSlider/CircleWebSlideCard.tsx @@ -3,7 +3,6 @@ import styled from '@emotion/styled'; import { memo, useState } from 'react'; import { generatePath, useHistory } from 'react-router'; -// import { Icons } from '@/assets'; import { Article } from '@/assets/icons'; import { ClearButton } from '@/components'; import { PAGE_URL } from '@/configs/path'; @@ -46,7 +45,8 @@ export const CircleWebSlideCard: React.FC<{ model: Model.Circle }> = memo( const Card = styled.article` box-sizing: border-box; width: 90%; - max-width: 360px; + min-width: 360px; + min-height: 500px; background: #fff; border: 1px solid #dadada; box-shadow: 1px 2px 5px rgb(0 0 0 / 15%); diff --git a/src/pages/circle/home/components/WebSlider/CircleWebSlider.tsx b/src/pages/circle/home/components/WebSlider/CircleWebSlider.tsx index 6aa24ecd..577e4ed5 100644 --- a/src/pages/circle/home/components/WebSlider/CircleWebSlider.tsx +++ b/src/pages/circle/home/components/WebSlider/CircleWebSlider.tsx @@ -1,14 +1,14 @@ import styled from '@emotion/styled'; import { observer } from 'mobx-react-lite'; +import { CircleWebSlideCard } from './CircleWebSlideCard'; import { ListComponent } from '../CircleListFrame'; -import { CircleSlideCard } from '../Slider/CircleSlideCard'; export const CircleWebSlider: ListComponent = observer(({ items }) => { return ( {items.map(item => ( - + ))} ); @@ -16,7 +16,8 @@ export const CircleWebSlider: ListComponent = observer(({ items }) => { const WebScrollWrapper = styled.div` display: flex; + align-items: center; gap: 20px; - height: 400px; overflow-x: auto; + padding: 10px 0px; `;