mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: enhance course and organization editing interfaces with improved text formatting and layout adjustments
This commit is contained in:
parent
7139448195
commit
40414e9478
3 changed files with 4 additions and 5 deletions
|
|
@ -134,8 +134,7 @@ const CourseClient = (props: any) => {
|
|||
/>
|
||||
<div className="pb-2 pt-3 flex flex-col md:flex-row justify-between items-start md:items-center">
|
||||
<div>
|
||||
<p className="text-md font-bold text-gray-400 pb-2">Course</p>
|
||||
<h1 className="text-3xl md:text-3xl -mt-3 font-bold">{course.name}</h1>
|
||||
<h1 className="text-3xl md:text-3xl font-bold">{course.name}</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -172,7 +171,7 @@ const CourseClient = (props: any) => {
|
|||
|
||||
<div className="course_metadata_left space-y-2">
|
||||
<div className="">
|
||||
<p className="py-5 whitespace-pre-wrap">{course.about}</p>
|
||||
<p className="py-5 whitespace-pre-line break-words w-full leading-relaxed tracking-normal text-pretty hyphens-auto">{course.about}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ function EditCourseGeneral(props: EditCourseStructureProps) {
|
|||
<FormLabelAndMessage label="About" message={formik.errors.about} />
|
||||
<Form.Control asChild>
|
||||
<Textarea
|
||||
style={{ backgroundColor: 'white' }}
|
||||
style={{ backgroundColor: 'white', height: '200px', minHeight: '200px' }}
|
||||
onChange={formik.handleChange}
|
||||
value={formik.values.about}
|
||||
required
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ const OrgEditGeneral: React.FC = () => {
|
|||
value={values.about}
|
||||
onChange={handleChange}
|
||||
placeholder="Detailed description of your organization"
|
||||
className="min-h-[150px]"
|
||||
className="min-h-[250px]"
|
||||
maxLength={400}
|
||||
/>
|
||||
{touched.about && errors.about && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue