mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Add "more" page control button
This commit is contained in:
parent
56945d91d3
commit
c4c4c3d270
29
core/ui/PageControls/more-page-actions.tid
Normal file
29
core/ui/PageControls/more-page-actions.tid
Normal file
@ -0,0 +1,29 @@
|
||||
title: $:/core/ui/Buttons/more-page-actions
|
||||
tags: $:/tags/PageControls
|
||||
caption: {{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}}
|
||||
|
||||
\define config-title()
|
||||
$:/config/PageControlButtons/Visibility/$(listItem)$
|
||||
\end
|
||||
<$button popup=<<qualify "$:/state/popup/more">> title={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tw-config-toolbar-class>> selectedClass="tw-selected">
|
||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/down-arrow}}
|
||||
</$list>
|
||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
||||
<$text text={{$:/language/Buttons/More/Caption}}/>
|
||||
</$list>
|
||||
</$button>
|
||||
<$reveal state=<<qualify "$:/state/popup/more">> type="popup" position="below" animate="yes">
|
||||
<div class="tw-drop-down">
|
||||
<$set name="tw-config-toolbar-icons" value="yes">
|
||||
<$set name="tw-config-toolbar-text" value="yes">
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]] -[[$:/core/ui/Buttons/more-page-actions]]" variable="listItem">
|
||||
<$reveal type="match" state=<<config-title>> text="hide">
|
||||
<$transclude tiddler=<<listItem>>/>
|
||||
</$reveal>
|
||||
</$list>
|
||||
</$set>
|
||||
</$set>
|
||||
</div>
|
||||
</$reveal>
|
||||
|
@ -1,4 +1,4 @@
|
||||
title: $:/core/ui/Buttons/more
|
||||
title: $:/core/ui/Buttons/more-tiddler-actions
|
||||
tags: $:/tags/ViewToolbar
|
||||
caption: {{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}}
|
||||
|
||||
@ -17,7 +17,7 @@ $:/config/ViewToolbarButtons/Visibility/$(listItem)$
|
||||
<div class="tw-drop-down">
|
||||
<$set name="tw-config-toolbar-icons" value="yes">
|
||||
<$set name="tw-config-toolbar-text" value="yes">
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more]]" variable="listItem">
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more-tiddler-actions]]" variable="listItem">
|
||||
<$reveal type="match" state=<<config-title>> text="hide">
|
||||
<$transclude tiddler=<<listItem>>/>
|
||||
</$reveal>
|
@ -2,6 +2,6 @@ title: $:/config/ViewToolbarButtons/Visibility/$:/
|
||||
|
||||
core/ui/Buttons/clone: hide
|
||||
core/ui/Buttons/close-others: hide
|
||||
core/ui/Buttons/more: hide
|
||||
core/ui/Buttons/more-tiddler-actions: hide
|
||||
core/ui/Buttons/permalink: hide
|
||||
core/ui/Buttons/permaview: hide
|
||||
|
@ -1,2 +1,2 @@
|
||||
title: $:/tags/ViewToolbar
|
||||
list: [[$:/core/ui/Buttons/more]] [[$:/core/ui/Buttons/info]] [[$:/core/ui/Buttons/clone]] [[$:/core/ui/Buttons/edit]] [[$:/core/ui/Buttons/permalink]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/close-others]] [[$:/core/ui/Buttons/close]]
|
||||
list: [[$:/core/ui/Buttons/more-tiddler-actions]] [[$:/core/ui/Buttons/info]] [[$:/core/ui/Buttons/clone]] [[$:/core/ui/Buttons/edit]] [[$:/core/ui/Buttons/permalink]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/close-others]] [[$:/core/ui/Buttons/close]]
|
||||
|
@ -867,6 +867,7 @@ canvas.tw-edit-bitmapeditor {
|
||||
padding: 0 14px 0 14px;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
color: <<colour foreground>>;
|
||||
}
|
||||
|
||||
.tw-drop-down a:hover, .tw-drop-down button:hover {
|
||||
|
Loading…
Reference in New Issue
Block a user