* [misc] support for hiding tabs nav when there is only one guide type.

This commit is contained in:
sunhao
2024-09-04 17:31:41 +08:00
committed by 王于听
parent 0d81965cc8
commit 7cf685774d
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ div
div
(
setID('sidebar'), // 侧边栏。Sidebar.
setClass('absolute top-0 bottom-0 right-0 border-l'),
setClass('absolute top-0 bottom-0 right-0 border-l', count($groupedGuides) === 1 ? 'is-single-type-mode' : ''),
style::width('--sidebar-width'),
($currentGuide && $currentTask) ? on::init()->call('activeTask', $currentGuide, $currentTask) : null,
h::header