The way down the tree is the link at the foot, not an arrow that follows
Test / test (pull_request) Successful in 56s
Test / test (pull_request) Successful in 56s
0.5.3 put the same link in two places: in words at the foot of the page, and as an arrow fixed at the left edge half-way up the screen. The arrow stayed with the reader the whole way down a page to offer what the foot offers where they end up anyway. It is removed; the foot link and where it leads are unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GT37Z1Xtfd9pUuQtMTg6Yt
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
48a1a58d01
commit
86ec51012e
+5
-19
@@ -477,7 +477,7 @@ fn QuestionView(
|
||||
/// Every other question the visitor currently qualifies for, as a
|
||||
/// small nav - how a concern reaches the people it speaks to without
|
||||
/// claiming front-page space (an owner also sees the gated desks here).
|
||||
/// Where the arrow on the left takes a visitor: the nearest page below
|
||||
/// Where the link at the foot of a page takes a visitor: the nearest page below
|
||||
/// the current one in the tree that they may open, found by taking the
|
||||
/// path apart one segment at a time (`/a/b/c`, then `/a/b`, then `/a`),
|
||||
/// and the front door when none of those is a page. `None` on the front
|
||||
@@ -523,24 +523,10 @@ fn QuestionNav(current_id: String) -> impl IntoView {
|
||||
let NavRes(nav) = expect_context();
|
||||
let location = leptos_router::hooks::use_location();
|
||||
view! {
|
||||
// The way down the tree: fixed at the left edge, half-way up the
|
||||
// screen, small enough never to cover what a visitor is reading.
|
||||
// It replaces a "back" alternative on every page that had one.
|
||||
<Suspense fallback=|| ()>
|
||||
{move || {
|
||||
let path = location.pathname.get();
|
||||
nav.get().and_then(|res| res.ok()).and_then(|items| down_the_tree(&path, &items)).map(|(href, name)| {
|
||||
let label = down_the_tree_label(&lang().get(), &href, &name);
|
||||
view! {
|
||||
<a class="down-the-tree" href=href aria-label=label.clone() title=label>
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M15 5 8 12l7 7" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||
</a>
|
||||
}
|
||||
})
|
||||
}}
|
||||
</Suspense>
|
||||
// The same way down, at the foot of the page, in words: where a
|
||||
// reader who has read to the end looks for where to go next.
|
||||
// The way down the tree, at the foot of the page, in words:
|
||||
// where a reader who has read to the end looks for where to go
|
||||
// next. It replaces a "back" alternative on every page that had
|
||||
// one.
|
||||
<Suspense fallback=|| ()>
|
||||
{move || {
|
||||
let path = location.pathname.get();
|
||||
|
||||
Reference in New Issue
Block a user