1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-08-08 23:03:50 +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(); event.preventDefault();
return false; return false;
case "tw-cancel-popup": 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); this.triggerPopup(event,true);
} }
break; break;

View File

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

View File

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