|
118 | 118 | <Table.Root class="mt-4">
|
119 | 119 | <Table.Body>
|
120 | 120 | <Table.Row class="group">
|
121 |
| - <Table.Head class="w-40 whitespace-nowrap">Occurred On</Table.Head> |
122 |
| - <Table.Cell class="w-4 pr-0"></Table.Cell> |
123 |
| - <Table.Cell class="flex items-center" |
124 |
| - >{#if eventResponse.isSuccess} |
125 |
| - <DateTime value={eventResponse.data.date}></DateTime> (<TimeAgo value={eventResponse.data.date}></TimeAgo>) |
126 |
| - {:else} |
127 |
| - <Skeleton class="h-[20px] w-full rounded-full" /> |
128 |
| - {/if}</Table.Cell |
129 |
| - > |
| 121 | + {#if eventResponse.isSuccess} |
| 122 | + <Table.Head class="w-40 whitespace-nowrap">Occurred On</Table.Head> |
| 123 | + <Table.Cell class="w-4 pr-0"></Table.Cell> |
| 124 | + <Table.Cell class="flex items-center" |
| 125 | + ><DateTime value={eventResponse.data.date}></DateTime> (<TimeAgo value={eventResponse.data.date}></TimeAgo>)</Table.Cell |
| 126 | + > |
| 127 | + {:else} |
| 128 | + <Table.Head class="w-40 whitespace-nowrap"><Skeleton class="h-[24px] w-full rounded-full" /></Table.Head> |
| 129 | + <Table.Cell class="w-4 pr-0"></Table.Cell> |
| 130 | + <Table.Cell class="flex items-center"><Skeleton class="h-[24px] w-full rounded-full" /></Table.Cell>{/if} |
130 | 131 | </Table.Row>
|
131 | 132 | <Table.Row class="group">
|
132 |
| - <Table.Head class="w-40 whitespace-nowrap">Project</Table.Head> |
133 | 133 | {#if projectResponse.isSuccess}
|
| 134 | + <Table.Head class="w-40 whitespace-nowrap">Project</Table.Head> |
134 | 135 | <Table.Cell class="w-4 pr-0 opacity-0 group-hover:opacity-100"
|
135 | 136 | ><ClickableProjectFilter
|
136 | 137 | {changed}
|
|
140 | 141 | /></Table.Cell
|
141 | 142 | >
|
142 | 143 | <Table.Cell>{projectResponse.data.name}</Table.Cell>
|
143 |
| - {:else if projectResponse.isLoading} |
| 144 | + {:else} |
| 145 | + <Table.Head class="w-40 whitespace-nowrap"><Skeleton class="h-[24px] w-full rounded-full" /></Table.Head> |
144 | 146 | <Table.Cell class="w-4 pr-0"></Table.Cell>
|
145 |
| - <Table.Cell class="flex items-center"><Skeleton class="h-[20px] w-full rounded-full" /></Table.Cell> |
| 147 | + <Table.Cell class="flex items-center"><Skeleton class="h-[24px] w-full rounded-full" /></Table.Cell> |
146 | 148 | {/if}
|
147 | 149 | </Table.Row>
|
148 | 150 | </Table.Body>
|
|
177 | 179 | {/each}
|
178 | 180 | </Tabs.Root>
|
179 | 181 | {:else}
|
180 |
| - <Skeleton class="h-[30px] w-full rounded-full" /> |
| 182 | + <Skeleton class="mt-4 h-[30px] w-full rounded-full" /> |
181 | 183 | <Table.Root class="mt-4">
|
182 | 184 | <Table.Body>
|
183 | 185 | {#each Array.from({ length: 5 })}
|
184 | 186 | <Table.Row class="group">
|
185 |
| - <Table.Head class="w-40 whitespace-nowrap"><Skeleton class="h-[20px] w-full rounded-full" /></Table.Head> |
| 187 | + <Table.Head class="w-40 whitespace-nowrap"><Skeleton class="h-[24px] w-full rounded-full" /></Table.Head> |
186 | 188 | <Table.Cell class="w-4 pr-0"></Table.Cell>
|
187 |
| - <Table.Cell class="flex items-center"><Skeleton class="h-[20px] w-full rounded-full" /></Table.Cell> |
| 189 | + <Table.Cell class="flex items-center"><Skeleton class="h-[24px] w-full rounded-full" /></Table.Cell> |
188 | 190 | </Table.Row>
|
189 | 191 | {/each}
|
190 | 192 | </Table.Body>
|
|
0 commit comments