move view shop link to top of admin sidebar
All checks were successful
deploy / deploy (push) Successful in 1m10s
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:
parent
7ea5e6dcfe
commit
820714a04f
@ -228,6 +228,11 @@
|
||||
font-size: 0.6875rem;
|
||||
}
|
||||
|
||||
.admin-btn-block {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.admin-btn-icon {
|
||||
padding: 0.5rem;
|
||||
aspect-ratio: 1;
|
||||
@ -3280,7 +3285,13 @@
|
||||
& .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 {
|
||||
padding: 0.5rem;
|
||||
border-top: 1px solid var(--t-border-default);
|
||||
|
||||
@ -51,6 +51,13 @@
|
||||
</p>
|
||||
</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 class="admin-sidebar-nav" aria-label="Admin navigation">
|
||||
<div class="admin-nav-group">
|
||||
@ -193,11 +200,6 @@
|
||||
<%!-- sidebar footer --%>
|
||||
<div class="admin-sidebar-footer">
|
||||
<ul class="admin-nav">
|
||||
<li>
|
||||
<.link href={~p"/"}>
|
||||
<.icon name="hero-arrow-top-right-on-square" class="size-5" /> View shop
|
||||
</.link>
|
||||
</li>
|
||||
<li>
|
||||
<details class="admin-dev-tools">
|
||||
<summary>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user