File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
src/routes/projects/[projectId]/datasets/[datasetId] Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 11* Note: Numbers like (\# 123) point to closed Pull Requests on the fractal-web repository.*
22
3+ # Unreleased
4+
5+ * Improve displaying of ` Dataset.meta ` properties (\# 281).
6+
37# 0.5.5
48
59* Fix bug in ` JSchema.svelte ` (\# 279).
Original file line number Diff line number Diff line change 1+ <style type =' text/css' >
2+ pre {display : inline ;}
3+ </style >
4+
15<script >
26 import { onMount } from ' svelte' ;
37 import { page } from ' $app/stores' ;
286290 <span class ="text-capitalize" >{key }</span >
287291 </li >
288292 <li class =" list-group-item text-break" >
289- <span class ="" >{value }</span >
293+ {#if value === null }
294+ <span >-</span >
295+ {:else if typeof value == " object" }
296+ {#if Object .keys (value ).length > 1 }
297+ <code ><pre >{JSON .stringify (value , null , 2 )}</pre ></code >
298+ {:else }
299+ <code ><pre >{JSON .stringify (value , null )}</pre ></code >
300+ {/if }
301+ {:else }
302+ <code >{value }</code >
303+ {/if }
290304 </li >
291305 {/each }
292306 </ul >
You can’t perform that action at this time.
0 commit comments