move comment box to the center

pull/34/head
Zlatin Balevsky 2019-12-16 18:11:30 +00:00
parent 2b0f4e52ca
commit 5774cdee94
2 changed files with 3 additions and 5 deletions

View File

@ -275,11 +275,9 @@ div.right {
float: right;
}
div.rightcomment {
div.centercomment {
display: block;
text-align: right;
float: right;
width: 50%;
text-align: center;
}
span.right {

View File

@ -19,7 +19,7 @@ class SharedFile {
var showCommentHtml = ""
var showCommentLink = new Link(_t("Comment"), "showCommentForm", [this.path])
showCommentHtml = "<span id='comment-link-" + this.path + "'>" + showCommentLink.render() + "</span>"
var commentDiv = "<div class='rightcomment' id='comment-" + this.path + "'></div>"
var commentDiv = "<div class='centercomment' id='comment-" + this.path + "'></div>"
var nameLink = "<a href='/MuWire/DownloadedContent/" + this.infoHash + "'>" + this.name + "</a>"
var html = nameLink + "<div class=\"right\">" + unshareLink.render() + " " + showCommentHtml + " " + certifyHtml + "</div>"