Skip to content
This repository was archived by the owner on Jun 12, 2025. It is now read-only.

Commit a87b760

Browse files
authored
Merge pull request #19 from EVOGD-Project:dev
Dev
2 parents 30fd48d + 3d2b6bb commit a87b760

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

src/components/general/ClassroomCard.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { CDN_URL } from '@/constants/constants';
44
import type { IClassroom } from '@/types/IClassroomCard';
5-
import { Box, Button, Card, CardBody, Flex, Heading, Image, Stack, Text } from '@chakra-ui/react';
5+
import { Box, Button, Card, CardBody, Flex, Heading, Image, Spacer, Stack, Text } from '@chakra-ui/react';
66
import { useRouter } from 'next/navigation';
77
import { FiUsers } from 'react-icons/fi';
88

@@ -33,18 +33,19 @@ export default function ClassroomCard({ item }: Readonly<{ item: IClassroom }>)
3333
</Box>
3434

3535
<CardBody>
36-
<Stack spacing={4}>
36+
<Stack spacing={4} h='100%'>
3737
<Heading
3838
size='md'
39-
noOfLines={2}
39+
noOfLines={1}
4040
transition='color 0.3s ease'
4141
_groupHover={{ color: 'brand.primary.400' }}
4242
>
4343
{item.name}
4444
</Heading>
45-
<Text fontSize='sm' noOfLines={2}>
45+
<Text fontSize='sm' noOfLines={1}>
4646
{item.description || 'Sin descripción.'}
4747
</Text>
48+
<Spacer />
4849
<Flex justify='space-between' align='center'>
4950
<Flex align='center' gap={2}>
5051
<FiUsers />

src/components/modals/CreateActivityModal.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export default function CreateActivityModal({
169169

170170
<FormControl isRequired>
171171
<FormLabel>Descripción</FormLabel>
172-
<Textarea
172+
<Input
173173
placeholder='Describe la actividad...'
174174
value={formData.description}
175175
onChange={(e) => setFormData({ ...formData, description: e.target.value })}
@@ -181,7 +181,6 @@ export default function CreateActivityModal({
181181
borderColor: 'brand.primary.500',
182182
boxShadow: '0 0 0 1px var(--chakra-colors-brand-primary-500)'
183183
}}
184-
rows={4}
185184
/>
186185
</FormControl>
187186

src/components/modals/CreateClassModal.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default function CreateClassModal({ isOpen, onClose }: Readonly<CreateCla
123123

124124
<FormControl isRequired>
125125
<FormLabel>Descripción</FormLabel>
126-
<Textarea
126+
<Input
127127
placeholder='Describe tu clase...'
128128
value={formData.description}
129129
onChange={(e) => setFormData({ ...formData, description: e.target.value })}
@@ -135,7 +135,6 @@ export default function CreateClassModal({ isOpen, onClose }: Readonly<CreateCla
135135
borderColor: 'brand.primary.500',
136136
boxShadow: '0 0 0 1px var(--chakra-colors-brand-primary-500)'
137137
}}
138-
rows={4}
139138
/>
140139
</FormControl>
141140

0 commit comments

Comments
 (0)