Move Graph-specific html from GraphsPage to Graph.svelte
This commit is contained in:
parent
36e14cd525
commit
c107090906
@ -42,6 +42,9 @@
|
||||
* marked the ticks as odd */
|
||||
display: none;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -57,7 +60,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="graph">
|
||||
<div class="graph" tabindex="-1">
|
||||
<h1>{title}</h1>
|
||||
|
||||
{#if subtitle}
|
||||
|
@ -60,9 +60,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.no-focus-outline:focus {
|
||||
outline: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="base">
|
||||
@ -77,7 +74,6 @@
|
||||
{/if}
|
||||
|
||||
{#if sourceData}
|
||||
<div tabindex="-1" class="no-focus-outline">
|
||||
{#each graphs as graph}
|
||||
<svelte:component
|
||||
this={graph}
|
||||
@ -88,6 +84,5 @@
|
||||
{nightMode}
|
||||
on:search={browserSearch} />
|
||||
{/each}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user