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; float: right;
} }
div.rightcomment { div.centercomment {
display: block; display: block;
text-align: right; text-align: center;
float: right;
width: 50%;
} }
span.right { span.right {

View File

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