1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-02 12:19:11 +00:00

Fixed the appearance of tag dropdowns

This commit is contained in:
Jeremy Ruston 2012-06-13 16:09:07 +01:00
parent 161ddcb473
commit ccfa7e1322
3 changed files with 11 additions and 2 deletions

View File

@ -68,7 +68,7 @@ exports.handleEvent = function(event) {
event.preventDefault();
return false;
case "tw-cancel-popup":
if(this.hasParameter("popup") && event.targetOfCancel !== this.domNode) {
if(this.hasParameter("popup") && !$tw.utils.domContains(this.domNode,event.targetOfCancel)) {
this.triggerPopup(event,true);
}
break;

View File

@ -1,10 +1,12 @@
title: $:/templates/TagTemplate
{{tw-tag-popup{
<<button popup:MyTiddler qualifyTiddlerTitles:yes><
{{label{
<<color background:yes default:#888><
<<button popup:MyTiddler qualifyTiddlerTitles:yes><
<<view title>>
>>
}}}
>>
}}}
<<reveal state:MyTiddler type:popup qualifyTiddlerTitles:yes><

View File

@ -42,6 +42,13 @@ body {
position: static;
}
button.tw-tag-popup {
border: none;
background: none;
margin: 0;
padding: 0;
}
.tw-tags-wrapper .label {
margin-right: 6px;
}