1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Menubar: Add an optional dropdown for the sidebar tabs

This commit is contained in:
Jeremy Ruston 2020-03-14 12:55:11 +00:00
parent 62f8c9353e
commit 061a2c6c94
3 changed files with 23 additions and 0 deletions

View File

@ -2,3 +2,4 @@ title: $:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menu
pagecontrols: hide
server: hide
sidebar: hide

View File

@ -0,0 +1,11 @@
title: $:/plugins/tiddlywiki/menubar/items/sidebar
caption: Sidebar
description: Sidebar
is-dropdown: yes
tags: $:/tags/MenuBar
<div class="tc-popup-keep tc-menubar-dropdown-sidebar">
<$transclude tiddler="$:/core/ui/SideBarSegments/tabs" mode="inline"/>
</div>

View File

@ -139,6 +139,17 @@ nav.tc-menubar .tc-drop-down ol {
margin: 0;
}
nav.tc-menubar .tc-drop-down .tc-menubar-dropdown-sidebar a,
nav.tc-menubar .tc-drop-down .tc-menubar-dropdown-sidebar button {
display: inline;
width: auto;
}
nav.tc-menubar .tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button {
display: block;
width: 100%;
}
@media (max-width: {{$:/config/plugins/menubar/breakpoint}}) {
.tc-menubar-wide {