make the comment box 50% of available space in table view

pull/34/head
Zlatin Balevsky 2019-12-16 17:28:38 +00:00
parent 63e3b3710c
commit 1d20dc917b
2 changed files with 9 additions and 2 deletions

View File

@ -178,6 +178,13 @@ div.right {
float: right;
}
div.rightcomment {
display: block;
text-align: right;
float: right;
width: 50%;
}
span.right {
display: inline-block;
float: right;

View File

@ -19,11 +19,11 @@ 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='right' id='comment-" + this.path + "'></div>"
var commentDiv = "<div class='rightcomment' 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>"
html += commentDiv
html += "<br/>" + commentDiv
mapping.set("File", html)
mapping.set("Size", this.size)