Skip to content

Commit fde40cd

Browse files
committed
fix: update EventLog component version and improve layout for history items
1 parent 6a2764c commit fde40cd

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

src/Components/Event/EventLog.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Models } from "~/Services/Status.Models";
77
/**
88
* @author Aloento
99
* @since 1.0.0
10-
* @version 0.1.0
10+
* @version 0.2.0
1111
*/
1212
export function EventLog({ Event }: { Event: Models.IEvent }) {
1313
const list = chain(Array.from(Event.Histories))
@@ -27,12 +27,16 @@ export function EventLog({ Event }: { Event: Models.IEvent }) {
2727
<tbody>
2828
{list.map((history, i) => (
2929
<tr key={i}>
30-
<td className="flex flex-col">
31-
<label className="font-medium">{history.Status}</label>
30+
<td className="relative">
31+
<div className="flex flex-col min-h-full">
32+
<label className="font-medium">
33+
{history.Status}
34+
</label>
3235

33-
<label>
34-
{dayjs(history.Created).tz(Dic.TZ).format(Dic.TimeTZ)}
35-
</label>
36+
<label>
37+
{dayjs(history.Created).tz(Dic.TZ).format(Dic.TimeTZ)}
38+
</label>
39+
</div>
3640
</td>
3741

3842
<td className="text-pretty break-all">{history.Message}</td>

0 commit comments

Comments
 (0)