mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 06:43:49 +00:00
add edit-button to variables exclude filter dropdown + styles
This commit is contained in:
parent
e976e90324
commit
62fd440fed
@ -258,24 +258,21 @@ tags: $:/tags/Global
|
|||||||
|
|
||||||
\procedure variablesMorePopup()
|
\procedure variablesMorePopup()
|
||||||
<span class="tc-popup-keep">
|
<span class="tc-popup-keep">
|
||||||
<$button popup=<<qualify "$:/state/variableDropdown">> class="tc-btn-invisible">
|
<$button popup=<<qualify "$:/state/variableDropdown">> class="tc-btn-invisible">
|
||||||
{{$:/core/images/down-arrow}}
|
{{$:/core/images/down-arrow}}
|
||||||
</$button>
|
</$button>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<$reveal state=<<qualify "$:/state/variableDropdown">> type="popup" position="belowleft">
|
<$reveal state=<<qualify "$:/state/variableDropdown">> type="popup" position="below">
|
||||||
<$let name="tv-show-missing-links" value="yes">
|
<$let name="tv-show-missing-links" value="yes">
|
||||||
<$linkcatcher actions=<<lc-actions>> >
|
<$linkcatcher actions=<<lc-actions>> >
|
||||||
<div class="tc-block-dropdown-wrapper">
|
<div class="tc-block-dropdown-wrapper">
|
||||||
<div class="tc-block-dropdown tc-edit-type-dropdown">
|
<div class="tc-block-dropdown tc-variables-dropdown">
|
||||||
<$macrocall $name="list-tagged-draggable"
|
<$macrocall $name="list-tagged-draggable"
|
||||||
tag="$:/tags/Variables/Exclude/Snippet"
|
tag="$:/tags/Variables/Exclude/Snippet"
|
||||||
subFilter="!is[draft]"
|
subFilter="!is[draft]"
|
||||||
itemTemplate="$:/core/ui/AdvancedSearch/Variables/ItemTemplate"
|
itemTemplate="$:/core/ui/AdvancedSearch/Variables/ItemTemplate"
|
||||||
/>
|
/>
|
||||||
<!-- <$list filter="[all[shadows+tiddlers]tag[$:/tags/Variables/Exclude/Snippet]!is[draft]]"> -->
|
|
||||||
<!-- <$link to={{!!text}}><$let tv-wikilinks="no"><$transclude field="description"/></$let></$link> -->
|
|
||||||
<!-- </$list> -->
|
|
||||||
<<addNewVariableFilter>>
|
<<addNewVariableFilter>>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
title: $:/core/ui/AdvancedSearch/Variables/ItemTemplate
|
||||||
|
|
||||||
|
\whitespace trim
|
||||||
|
|
||||||
|
\procedure editSnippet()
|
||||||
|
<$action-sendmessage $message="tm-edit-tiddler" title=<<currentTiddler>> />
|
||||||
|
\end
|
||||||
|
|
||||||
|
<$link to={{!!text}} >
|
||||||
|
<$let tv-wikilinks="no">
|
||||||
|
<$transclude field="description"/>
|
||||||
|
</$let>
|
||||||
|
</$link>
|
||||||
|
<$button actions=<<editSnippet>> class="tc-btn-invisible tc-small-gap-left">
|
||||||
|
{{$:/core/images/edit-button}}
|
||||||
|
</$button>
|
@ -1954,6 +1954,22 @@ html body.tc-body.tc-single-tiddler-window {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tc-block-dropdown-wrapper .tc-variables-dropdown {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tc-block-dropdown-wrapper .tc-variables-dropdown a {
|
||||||
|
display: inline-block;
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tc-block-dropdown-wrapper .tc-variables-dropdown svg {
|
||||||
|
height: .9rem;
|
||||||
|
width: .9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.tc-search-results {
|
.tc-search-results {
|
||||||
padding: 0 7px 0 7px;
|
padding: 0 7px 0 7px;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user