Skip to content

Commit

Permalink
Brute force box sizing :/
Browse files Browse the repository at this point in the history
  • Loading branch information
jmandel committed Oct 11, 2023
1 parent df24f38 commit e75d72e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test_report/src/Playground.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
{/each}
</select>

<textarea
<textarea style={`height: ${initializedFromStore.views[selectedTestIndex].split("\n").length * 1.5}em`}
id="view-definition"
bind:value={initializedFromStore.views[selectedTestIndex]}
/>
Expand All @@ -97,7 +97,7 @@
<!-- Resources Array Panel -->
<div class="panel right-panel">
<h2>Resources Array</h2>
<textarea
<textarea style={`height: ${initializedFromStore.resources.split("\n").length * 1.5}em`}
id="resources-array"
bind:value={initializedFromStore.resources}
/>
Expand All @@ -106,7 +106,7 @@
<!-- Expected Results Panel -->
<div class="panel">
<h2>Expected Results</h2>
<textarea
<textarea style={`height: ${initializedFromStore.expected[selectedTestIndex].split("\n").length * 1.5}em`}
id="expected-results"
bind:value={initializedFromStore.expected[selectedTestIndex]}
/>
Expand Down Expand Up @@ -134,6 +134,7 @@
.left-panel {
grid-column: 1 / 2;
grid-row: 1 / 4;
}
.right-panel {
Expand All @@ -160,6 +161,8 @@
.left-panel,
.right-panel {
grid-column: 1 / 2;
min-height: fit-content;
grid-row:unset;
}
}
</style>

0 comments on commit e75d72e

Please sign in to comment.