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,17 +74,15 @@
|
||||
{/if}
|
||||
|
||||
{#if sourceData}
|
||||
<div tabindex="-1" class="no-focus-outline">
|
||||
{#each graphs as graph}
|
||||
<svelte:component
|
||||
this={graph}
|
||||
{sourceData}
|
||||
{preferences}
|
||||
{revlogRange}
|
||||
{i18n}
|
||||
{nightMode}
|
||||
on:search={browserSearch} />
|
||||
{/each}
|
||||
</div>
|
||||
{#each graphs as graph}
|
||||
<svelte:component
|
||||
this={graph}
|
||||
{sourceData}
|
||||
{preferences}
|
||||
{revlogRange}
|
||||
{i18n}
|
||||
{nightMode}
|
||||
on:search={browserSearch} />
|
||||
{/each}
|
||||
{/if}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user