move view shop link to top of admin sidebar
All checks were successful
deploy / deploy (push) Successful in 1m10s

More prominent placement just below the header, removed from footer.
Footer now only has dev tools disclosure and log out.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jamey 2026-03-02 08:19:28 +00:00
parent 7ea5e6dcfe
commit 820714a04f
2 changed files with 19 additions and 6 deletions

View File

@ -228,6 +228,11 @@
font-size: 0.6875rem; font-size: 0.6875rem;
} }
.admin-btn-block {
width: 100%;
justify-content: center;
}
.admin-btn-icon { .admin-btn-icon {
padding: 0.5rem; padding: 0.5rem;
aspect-ratio: 1; aspect-ratio: 1;
@ -3280,7 +3285,13 @@
& .admin-text-secondary { margin-top: 0.125rem; } & .admin-text-secondary { margin-top: 0.125rem; }
} }
/* Sidebar footer (view shop, log out) */ /* View shop link below sidebar header */
.admin-sidebar-view-shop {
padding: 0.5rem;
border-bottom: 1px solid var(--t-border-default);
}
/* Sidebar footer (dev tools, log out) */
.admin-sidebar-footer { .admin-sidebar-footer {
padding: 0.5rem; padding: 0.5rem;
border-top: 1px solid var(--t-border-default); border-top: 1px solid var(--t-border-default);

View File

@ -51,6 +51,13 @@
</p> </p>
</div> </div>
<%!-- view shop link --%>
<div class="admin-sidebar-view-shop">
<.link href={~p"/"} class="admin-btn admin-btn-ghost admin-btn-sm admin-btn-block">
<.icon name="hero-arrow-top-right-on-square" class="size-4" /> View shop
</.link>
</div>
<%!-- nav links --%> <%!-- nav links --%>
<nav class="admin-sidebar-nav" aria-label="Admin navigation"> <nav class="admin-sidebar-nav" aria-label="Admin navigation">
<div class="admin-nav-group"> <div class="admin-nav-group">
@ -193,11 +200,6 @@
<%!-- sidebar footer --%> <%!-- sidebar footer --%>
<div class="admin-sidebar-footer"> <div class="admin-sidebar-footer">
<ul class="admin-nav"> <ul class="admin-nav">
<li>
<.link href={~p"/"}>
<.icon name="hero-arrow-top-right-on-square" class="size-5" /> View shop
</.link>
</li>
<li> <li>
<details class="admin-dev-tools"> <details class="admin-dev-tools">
<summary> <summary>