Skip to content

Commit

Permalink
Bugfix/uni 315 text overflow (#318)
Browse files Browse the repository at this point in the history
* Fixed overflowing word

---------
  • Loading branch information
Christin322 authored Oct 4, 2024
1 parent b446622 commit 7344397
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 21 deletions.
2 changes: 2 additions & 0 deletions backend/src/repositories/course.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import {
CourseCodeSchema,
CourseSchema,
} from "../api/schemas/course.schema";
import e from "express";
import { Console } from "console";

export class CourseRepository {
constructor(private readonly prisma: PrismaClient) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default function TruncatedDescription({
newMax++;
index++;
}

if (index === content.length) {
setShortenedContent(content);
} else {
Expand All @@ -50,7 +51,7 @@ export default function TruncatedDescription({
}, [content])

return (
<div>
<div className="break-words">
<p className="whitespace-pre-line text-justify">
{showFullContent ? content : shortenedContent}
</p>
Expand Down
2 changes: 1 addition & 1 deletion migration/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.2-alpine
FROM node:20.4-alpine

# Set the current working directory inside the container
WORKDIR /app
Expand Down
20 changes: 1 addition & 19 deletions migration/src/migrate/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,25 +88,7 @@ export default class MigrationRepository {
"terms",
"title",
"uoc",
"rating",
"archived",
"attributes",
"calendar",
"campus",
"description",
"enrolment_rules",
"equivalents",
"exclusions",
"faculty",
"field_of_education",
"gen_ed",
"level",
"school",
"study_level",
"terms",
"title",
"uoc",
"rating",
"rating"
],
["course_code"],
{ skipUpdateIfNoValuesChanged: true },
Expand Down

0 comments on commit 7344397

Please sign in to comment.