Move font loader into dropdown, remove standalone refresh button
This commit is contained in:
@@ -84,13 +84,14 @@
|
|||||||
</button>
|
</button>
|
||||||
{/each}
|
{/each}
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{#if fontQuerySupported}
|
{#if fontQuerySupported && $fontCache.length <= 1}
|
||||||
<button class="btn {$fontCache.length <= 1 ? 'btn-primary pulse' : 'btn-outline-secondary'}" onclick={getSystemFonts} title={$tr("params.text.fetch_fonts")}>
|
<div class="dropdown-divider"></div>
|
||||||
<MdIcon icon="refresh" />
|
<button class="dropdown-item text-primary" type="button" onclick={getSystemFonts}>
|
||||||
</button>
|
<MdIcon icon="refresh" /> Load system fonts
|
||||||
|
</button>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<FontsMenu />
|
<FontsMenu />
|
||||||
@@ -110,12 +111,4 @@
|
|||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pulse {
|
|
||||||
animation: pulse 1.5s ease-in-out 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes pulse {
|
|
||||||
0%, 100% { opacity: 1; }
|
|
||||||
50% { opacity: 0.5; }
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user