Skip to content

Commit

Permalink
fix errorchart height prop for reference components
Browse files Browse the repository at this point in the history
  • Loading branch information
hughess committed Jan 9, 2025
1 parent 85533c8 commit 6a13648
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,25 @@
</script>

<script>
import { cn } from '$lib/utils.js';

Check failure on line 6 in packages/ui/core-components/src/lib/unsorted/viz/core/ErrorChart.svelte

View workflow job for this annotation

GitHub Actions / Check project linting

'cn' is defined but never used
/** @type {Error} */
export let error;
/** @type {string} */
export let title;
/** @type {string} */
export let height = '340';
export let height = 200;
</script>

<div
width="100%"
class="grid grid-rows-auto grid-cols-1 justify-center relative
class={`grid grid-rows-auto grid-cols-1 justify-center relative
bg-negative/10 text-negative
font-ui font-normal
rounded border border-negative/50
min-h-[200px]
h-[{height}px]
min-h-[${height}px]
py-5 px-8 mt-2 mb-4
print:break-inside-avoid"
print:break-inside-avoid`}
>
<div class="m-auto w-full">
<div class="font-bold text-center text-lg">
Expand Down

0 comments on commit 6a13648

Please sign in to comment.