This commit is contained in:
1 parent
0306f22911
commit
f604d3cd55
1 file changed
+27
-25
@@ -181,32 +181,34 @@
|
|||||||
<ConfirmDialog />
|
<ConfirmDialog />
|
||||||
|
|
||||||
<!-- Floating Controllers (VOID style) -->
|
<!-- Floating Controllers (VOID style) -->
|
||||||
<aside id="ctrler-panel">
|
{#if $page.url.pathname.includes('/new') || $page.url.pathname.includes('/settings') || /\/admin\/(posts|pages)\/[^\/]+$/.test($page.url.pathname)}
|
||||||
<div class="ctrler-item" title="返回顶部">
|
<aside id="ctrler-panel">
|
||||||
<a
|
<div class="ctrler-item" title="返回顶部">
|
||||||
href="#top"
|
<a
|
||||||
aria-label="返回顶部"
|
href="#top"
|
||||||
onclick={(e) => {
|
aria-label="返回顶部"
|
||||||
e.preventDefault();
|
onclick={(e) => {
|
||||||
scrollToTop();
|
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
|
|
||||||
>
|
>
|
||||||
</a>
|
<svg
|
||||||
</div>
|
aria-hidden="true"
|
||||||
</aside>
|
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>
|
<style>
|
||||||
:global(body) {
|
:global(body) {
|
||||||
|
|||||||
Reference in new issue
Block a user