Skip to content

Commit

Permalink
feat: disable detail dropdown, change img aspect ratio, edit redirect…
Browse files Browse the repository at this point in the history
… text
  • Loading branch information
LittleNa1000 committed Feb 10, 2024
1 parent 020dafd commit 2e5bfed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/components/MemberCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function MemberCard({
cursor="pointer"
/>
</Stack>
{showDetail ? (
{/* {showDetail ? (
<ChevronUpIcon
boxSize={['24px', '36px']}
cursor="pointer"
Expand All @@ -95,7 +95,7 @@ export function MemberCard({
cursor="pointer"
onClick={() => setShowDetail(true)}
/>
)}
)} */}
</Flex>
{/* detail */}
{showDetail && (
Expand Down Expand Up @@ -216,8 +216,8 @@ function CardHeader({
<AspectRatio
overflow="hidden"
rounded="md"
width={['50px', '80px']}
ratio={1 / 1}
width={['40px', '70px']}
ratio={425 / 486}
>
<Image
src={member.avatar ? `${API_HOST}${member.avatar.url}` : undefined}
Expand Down
4 changes: 2 additions & 2 deletions src/components/RedirectFirstElection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function RedirectFirstElection() {
</a>
)}
</Flex>
{website && (
{/* {website && (
<Text mt="20px" fontWeight={300} textAlign="center">
และเว็บไซต์{' '}
<a
Expand All @@ -116,7 +116,7 @@ export default function RedirectFirstElection() {
{website}
</a>
</Text>
)}
)} */}
</>
)}
</Flex>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/electionDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,15 @@ export default function ElectionDetail({ election }: { election: Election }) {
</>
)}
</Card>
<Card
{/* <Card
mt="16px"
fontWeight="300"
textAlign="center"
fontSize={['sm', 'md', 'lg']}
>
กดที่เครื่องหมาย <ChevronDownIcon />{' '}
ทางด้านขวาของชื่อเพื่อดูประวัติการทำงานเเละวิสัยทัศน์
</Card>
</Card> */}
<PositionAdapter
position={currentPosition}
selected={selected}
Expand Down

0 comments on commit 2e5bfed

Please sign in to comment.