This commit is contained in:
1 parent
0306f22911
commit
f604d3cd55
1 file changed
+27
-25
@@ -181,32 +181,34 @@
|
||||
<ConfirmDialog />
|
||||
|
||||
<!-- Floating Controllers (VOID style) -->
|
||||
<aside id="ctrler-panel">
|
||||
<div class="ctrler-item" title="返回顶部">
|
||||
<a
|
||||
href="#top"
|
||||
aria-label="返回顶部"
|
||||
onclick={(e) => {
|
||||
e.preventDefault();
|
||||
scrollToTop();
|
||||
}}
|
||||
>
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
role="img"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 448 512"
|
||||
width="16"
|
||||
height="16"
|
||||
><path
|
||||
fill="currentColor"
|
||||
d="M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"
|
||||
></path></svg
|
||||
{#if $page.url.pathname.includes('/new') || $page.url.pathname.includes('/settings') || /\/admin\/(posts|pages)\/[^\/]+$/.test($page.url.pathname)}
|
||||
<aside id="ctrler-panel">
|
||||
<div class="ctrler-item" title="返回顶部">
|
||||
<a
|
||||
href="#top"
|
||||
aria-label="返回顶部"
|
||||
onclick={(e) => {
|
||||
e.preventDefault();
|
||||
scrollToTop();
|
||||
}}
|
||||
>
|
||||
</a>
|
||||
</div>
|
||||
</aside>
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
role="img"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 448 512"
|
||||
width="16"
|
||||
height="16"
|
||||
><path
|
||||
fill="currentColor"
|
||||
d="M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"
|
||||
></path></svg
|
||||
>
|
||||
</a>
|
||||
</div>
|
||||
</aside>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
:global(body) {
|
||||
|
||||
Reference in new issue
Block a user