From c4488332f6ab1aa91a97ea205e9ef2842ab1addc Mon Sep 17 00:00:00 2001 From: Yuto Nishida Date: Sun, 9 Aug 2026 17:16:05 -0700 Subject: [PATCH] [owl] Keep current view mode --- experimental/owl/web/src/components/FileTree.astro | 10 ++++++---- experimental/owl/web/src/layouts/Shell.astro | 6 ++++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/experimental/owl/web/src/components/FileTree.astro b/experimental/owl/web/src/components/FileTree.astro index 131916f..c0fce68 100644 --- a/experimental/owl/web/src/components/FileTree.astro +++ b/experimental/owl/web/src/components/FileTree.astro @@ -1,14 +1,16 @@ --- // Recursive file-tree sidebar. Directories are collapsible
, expanded -// along the path to the current file. Files link to their rendered view. +// along the path to the current file. Files link to the sidebar's current view +// (rendered or raw), so navigating the tree keeps you in the same view. import Self from './FileTree.astro'; import type { TreeNode } from '../lib/manifest'; interface Props { node: TreeNode; current: string; + view: 'rendered' | 'raw'; } -const { node, current } = Astro.props; +const { node, current, view } = Astro.props; ---