Skip to content

Commit 49978f2

Browse files
committed
Updates event time formatting and improves text handling
Modifies event time display to include timezone information. Enhances text rendering for better readability by allowing line breaks.
1 parent ecb695b commit 49978f2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Components/Event/EventCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function EventCard({ Event }: { Event: Models.IEvent }) {
3131
<div className="flex items-center gap-x-3">
3232
<Indicator Type={Event.Type} />
3333

34-
<h3 className="text-2xl font-medium text-slate-800">
34+
<h3 className="text-2xl font-medium text-slate-800 break-all">
3535
{Event.Title}
3636
</h3>
3737
</div>
@@ -72,11 +72,11 @@ export function EventCard({ Event }: { Event: Models.IEvent }) {
7272
</label>
7373

7474
<label className="text-xl font-medium text-slate-700">
75-
{dayjs(Event.Start).tz(Dic.TZ).format(Dic.Time)}
75+
{dayjs(Event.Start).tz(Dic.TZ).format(Dic.TimeTZ)}
7676
</label>
7777

7878
<label className="text-xl font-medium text-slate-700">
79-
{Event.End ? dayjs(Event.End).tz(Dic.TZ).format(Dic.Time) : "Still Ongoing"}
79+
{Event.End ? dayjs(Event.End).tz(Dic.TZ).format(Dic.TimeTZ) : "Still Ongoing"}
8080
</label>
8181
</div>
8282
</div>

src/Components/Event/EventLog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ export function EventLog({ Event }: { Event: Models.IEvent }) {
4242
<label className="font-medium">{history.Status}</label>
4343

4444
<label>
45-
{dayjs(history.Created).tz(Dic.TZ).format(Dic.Time)}
45+
{dayjs(history.Created).tz(Dic.TZ).format(Dic.TimeTZ)}
4646
</label>
4747
</td>
4848

49-
<td className="text-pretty">{history.Message}</td>
49+
<td className="text-pretty break-all">{history.Message}</td>
5050
</tr>
5151
))}
5252
</tbody>

0 commit comments

Comments
 (0)