|
13 | 13 | {#if incident != undefined} |
14 | 14 | {#if full} |
15 | 15 | <a class="card bg-base-200 w-full shadow-sm {incident_class}" href={!full ? `/i/${incident.id}` : undefined}> |
16 | | - <div class="card-body w-full items-center"> |
| 16 | + <div class="card-body m-auto w-3/4 items-center"> |
17 | 17 | <h2 class="card-title py-4"> |
18 | 18 | <div class="flex flex-col w-full items-center"> |
19 | 19 | <span class="text-2xl">{incident.name} {#if incident.impact != "none"}<div class="badge {impact_class}">{incident.impact}</div>{/if}</span> |
20 | 20 | <span class="text-sm italic">{dateAgo(incident.timestamp.getTime())}</span> |
21 | 21 | </div> |
22 | 22 | </h2> |
23 | | - <span class=" flex flex-col gap-4 text-left text-base"> |
24 | | - {#await marked(incident.description)} |
| 23 | + <span class=" flex flex-col gap-4 text-left text-base w-full"> |
| 24 | + {#await marked(incident.description, { breaks: true })} |
25 | 25 | <p>loading...</p> |
26 | 26 | {:then html} |
27 | 27 | <Render html={html} /> |
28 | 28 | {/await} |
29 | 29 | </span> |
| 30 | + <div class="divider"></div> |
30 | 31 | {#if incident.updates && incident.updates.length > 0} |
31 | | - <div> |
32 | | - <div class="divider"></div> |
| 32 | + <div class="w-full"> |
33 | 33 | <ul class="timeline timeline-vertical timeline-compact gap-6 py-2"> |
34 | 34 | {#each incident.updates.sort((a, b) => a.timestamp.getTime() + b.timestamp.getTime()) as update} |
35 | 35 | <li> |
36 | 36 | <div class="timeline-start timeline-box flex gap-4 py-3 text-left text-sm"> |
37 | 37 | {#if update.status} |
38 | 38 | <span class="update-status font-bold">{String(update.status).charAt(0).toUpperCase() + String(update.status).slice(1)}</span> |
39 | 39 | {/if} |
40 | | - {#await marked(update.text)} |
| 40 | + {#await marked(update.text, { breaks: true })} |
41 | 41 | <p>loading...</p> |
42 | 42 | {:then html} |
43 | 43 | <Render html={html} /> |
|
65 | 65 | </div> |
66 | 66 | </h2> |
67 | 67 | <span class=" flex flex-col gap-4 text-left text-sm"> |
68 | | - {#await marked(incident.description)} |
| 68 | + {#await marked(incident.description, { breaks: true })} |
69 | 69 | <p>loading...</p> |
70 | 70 | {:then html} |
71 | 71 | <Render html={html} /> |
|
86 | 86 | {#if update.status} |
87 | 87 | <span class="update-status font-bold">{String(update.status).charAt(0).toUpperCase() + String(update.status).slice(1)}</span> |
88 | 88 | {/if} |
89 | | - {#await marked(update.text)} |
| 89 | + {#await marked(update.text, { breaks: true })} |
90 | 90 | <p>loading...</p> |
91 | 91 | {:then html} |
92 | 92 | <Render html={html} /> |
|
0 commit comments