1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 00:50:28 +00:00

Fix search dropdown positioning

This fixes a problem introduced in
72941f3e9a whereby the change to
tc-drop-down affected other dropdowns.
This commit is contained in:
Jermolene 2015-12-20 08:53:29 +00:00
parent ad1793c8f5
commit 07ac75b084
2 changed files with 16 additions and 12 deletions

View File

@ -29,16 +29,12 @@ title: $:/core/ui/SideBarLists
</$reveal>
</div>
<$reveal state="$:/temp/search" type="nomatch" text="">
<$reveal tag="div" class="tc-block-dropdown-wrapper" state="$:/temp/search" type="nomatch" text="">
<$reveal state=<<qualify "$:/state/popup/search-dropdown">> type="nomatch" text="" default="">
<div class="tc-drop-down tc-search-drop-down tc-popup-handle">
<$reveal tag="div" class="tc-block-dropdown tc-search-drop-down tc-popup-handle" state=<<qualify "$:/state/popup/search-dropdown">> type="nomatch" text="" default="">
{{$:/core/ui/SearchResults}}
</div>
</$reveal>
</$reveal>

View File

@ -1191,8 +1191,6 @@ html body.tc-body.tc-single-tiddler-window {
}
.tc-drop-down {
position: absolute;
z-index: 1000;
min-width: 380px;
border: 1px solid <<colour dropdown-border>>;
background-color: <<colour dropdown-background>>;
@ -1203,10 +1201,6 @@ html body.tc-body.tc-single-tiddler-window {
line-height: 1.4;
}
.tc-search-drop-down {
margin-left: -12px;
}
.tc-drop-down .tc-drop-down {
margin-left: 14px;
}
@ -1304,6 +1298,11 @@ html body.tc-body.tc-single-tiddler-window {
margin: 4px 0 0 0;
white-space: nowrap;
z-index: 1000;
text-shadow: none;
}
.tc-block-dropdown.tc-search-drop-down {
margin-left: -12px;
}
.tc-block-dropdown a {
@ -1311,6 +1310,11 @@ html body.tc-body.tc-single-tiddler-window {
padding: 4px 14px 4px 14px;
}
.tc-block-dropdown.tc-search-drop-down a {
display: block;
padding: 0px 10px 0px 10px;
}
.tc-drop-down .tc-dropdown-item,
.tc-block-dropdown .tc-dropdown-item {
padding: 4px 14px 4px 7px;
@ -1323,6 +1327,10 @@ html body.tc-body.tc-single-tiddler-window {
text-decoration: none;
}
.tc-search-results {
padding: 0 7px 0 7px;
}
/*
** Modals
*/