[FIX] Wiki Topic - IE / FF problem with post admin menu.

This commit is contained in:
Wojciech Zawistowski 2014-05-26 22:19:28 +02:00
parent 7900c7bd2f
commit d4ae913065
3 changed files with 10 additions and 4 deletions

View File

@ -229,11 +229,9 @@ Discourse.PostMenuView = Discourse.View.extend({
return; return;
} }
buffer.push('<button title="' + I18n.t("post.controls.admin") + '" data-action="admin" class="admin"><i class="fa fa-wrench"></i>'); buffer.push('<button title="' + I18n.t("post.controls.admin") + '" data-action="admin" class="admin"><i class="fa fa-wrench"></i></button>');
this.renderAdminPopup(post, buffer); this.renderAdminPopup(post, buffer);
buffer.push('</button>');
}, },
renderAdminPopup: function(post, buffer) { renderAdminPopup: function(post, buffer) {

View File

@ -98,6 +98,10 @@ section.post-menu-area, .post-actions {
} }
} }
section.post-menu-area {
position: relative;
}
nav.post-controls { nav.post-controls {
padding: 0; padding: 0;
button { button {

View File

@ -83,6 +83,10 @@ button {
} }
} }
nav.post-controls {
position: relative;
}
.post-admin-menu { .post-admin-menu {
background-color: $secondary; background-color: $secondary;
width: 205px; width: 205px;
@ -90,7 +94,7 @@ button {
border: 1px solid scale-color-diff(); border: 1px solid scale-color-diff();
position: absolute; position: absolute;
text-align: left; text-align: left;
bottom: 0; bottom: -26px;
left: 0; left: 0;
z-index: 1000; z-index: 1000;
display: none; display: none;