Skip to content

Commit 7f25f42

Browse files
committed
Use old layout with thumbnail above
1 parent a951e9a commit 7f25f42

1 file changed

Lines changed: 29 additions & 59 deletions

File tree

src/JsonValidator/index.svelte

Lines changed: 29 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -65,45 +65,36 @@
6565
</script>
6666
6767
<article>
68-
<div class="thumbnail_row">
69-
<div class="thumbnail_wrapper">
70-
<Thumbnail source = {firstPlateImageUrl || firstWellImageUrl || source} targetSize=150 />
71-
</div>
68+
<div class="thumbnail_wrapper">
69+
<Thumbnail source = {firstPlateImageUrl || firstWellImageUrl || source} targetSize=150 />
7270
</div>
73-
<div class="validation_row">
74-
<p>
75-
Validating: <a href="{source}/{zarrAttrsFileName}"
76-
>/{zarrName}/{zarrAttrsFileName}</a
77-
>
78-
<br />
79-
{versionMessage}
80-
81-
Using schema{schemaUrls.length > 1 ? "s" : ""}: <br>
82-
{#each schemaUrls as url, i}
83-
{i > 0 ? " and " : ""}
84-
<a href={url} target="_blank">{url.split("ngff")[1]}</a>
71+
72+
<p>
73+
Validating: <a href={source}/{zarrAttrsFileName}>/{zarrName}/{zarrAttrsFileName}</a>
74+
</p>
75+
{versionMessage}
76+
Using schema{schemaUrls.length > 1 ? "s" : ""}:
77+
{#each schemaUrls as url, i}
78+
{i > 0 ? " and " : ""}
79+
<a href={url} target="_blank">{url.split("ngff")[1]}</a>
80+
{/each}
81+
{#await promise}
82+
<div>loading schema...</div>
83+
{:then errors}
84+
<CheckMark valid={errors.length == 0} />
85+
{#if errors.length > 0}
86+
<div class="error">
87+
Errors:
88+
{#each errors as error}
89+
<pre><code>{JSON.stringify(error, null, 2)}</code></pre>
8590
{/each}
86-
</p>
87-
88-
<div class="checkmark">
89-
{#await promise}
90-
<div>loading schema...</div>
91-
{:then errors}
92-
<CheckMark valid={errors.length == 0} />
93-
{#if errors.length > 0}
94-
<div class="error">
95-
Errors:
96-
{#each errors as error}
97-
<pre><code>{JSON.stringify(error, null, 2)}</code></pre>
98-
{/each}
99-
</div>
100-
{/if}
101-
{:catch error}
102-
<CheckMark valid={false} />
103-
<p style="color: red">{error.message}</p>
104-
{/await}
105-
</div>
106-
</div>
91+
</div>
92+
{/if}
93+
{:catch error}
94+
<CheckMark valid={false}/>
95+
<p style="color: red">{error.message}</p>
96+
{/await}
97+
10798
10899
<OpenWith {source} {dtype} {version} />
109100
@@ -139,29 +130,8 @@
139130
{/if}
140131
141132
<style>
142-
.thumbnail_row {
143-
display: flex;
144-
flex-direction: row;
145-
justify-content: space-around;
146-
align-items: center;
147-
}
148-
.validation_row {
149-
max-width: 100%;
150-
display: flex;
151-
flex-direction: row;
152-
justify-content: space-around;
153-
align-items: center;
154-
}
155133
.thumbnail_wrapper {
156-
flex: 1 1 auto;
157-
}
158-
.thumbnail_row :global(.thumbnail) {
159-
border-radius: 6px;
160-
max-width: 200px;
161-
max-width: 200px;
162-
}
163-
.checkmark {
164-
flex: 0 0 auto;
134+
margin-bottom: 10px;
165135
}
166136
167137
a,

0 commit comments

Comments
 (0)