diff --git a/public/css/main.css b/public/css/main.css index be0eaac3..836ff1e5 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -1254,6 +1254,31 @@ html, body { margin-bottom: 0; } +.CodeMirror { + cursor: text; +} +.CodeMirror-fullscreen, .editor-toolbar.fullscreen { + max-width: none!important; +} +.editor-toolbar.fullscreen { + padding: 8px 6px!important; +} +.comment-form .CodeMirror, .comment-form .CodeMirror-scroll { + min-height: 122px; +} +.comment-text, .markdown-container { + position: relative; +} +.comment-form .editor-toolbar { + padding: 0 6px; +} +.comment-form .editor-toolbar:before { + margin-bottom: 4px; +} +.comment-form .editor-toolbar:after { + margin-top: 4px; +} + .comment-form h3 { margin-bottom: 8px; } @@ -2083,11 +2108,19 @@ p.upload-rules a { .upload-form-table .table-torrent-link input[type="text"] { width: 62%; } -.upload-form-table .editor-statusbar { - position: relative; - margin-top: -27px; - margin-bottom: 2px; +.upload-form-table #desc { + margin-bottom: 20px; +} +.comment-text .editor-statusbar { + right: 9px; + bottom: 20px; +} +.editor-statusbar { + position: absolute; + padding: 0; + right: 8px; z-index: 1; + bottom: 6px; } .upload-form-table details { diff --git a/public/css/themes/classic.css b/public/css/themes/classic.css index fb98ef0a..4e693089 100644 --- a/public/css/themes/classic.css +++ b/public/css/themes/classic.css @@ -279,6 +279,9 @@ select.form-input { .CodeMirror { padding: 0; } +.comment-form .CodeMirror, .comment-form .CodeMirror-scroll { + min-height: 70px; +} .upload-form-table .checkbox-container { height: 22px; @@ -689,33 +692,58 @@ span.tag { } .upload-form-table .table-torrent-link input { width: 100%!important; -} -.upload-form-table .editor-toolbar { +} +.editor-toolbar, .CodeMirror { + max-width: 459px; +} +.editor-toolbar.fullscreen { + top: 40px; +} +.CodeMirror-fullscreen { + top: 90px; +} +.markdown-container .editor-statusbar { + bottom: 6px; + left: 141px; +} +.editor-statusbar { + bottom: 19px; + left: 209px; + right: unset!important; +} +.editor-toolbar { padding: 0 2px; font-size: 10px; } -.upload-form-table .editor-toolbar, .upload-form-table .CodeMirror { +.editor-toolbar, .CodeMirror { border-radius: 0; border-color: #c4c4c4; opacity: 1; } -.upload-form-table .editor-toolbar::before { +.editor-toolbar::before { margin-bottom: 2px; } -.upload-form-table .editor-toolbar::after { +.editor-toolbar::after { margin-top: 4px; } -.upload-form-table .editor-toolbar a { +.editor-toolbar a { width: 26px; height: 24px; } -.upload-form-table .editor-toolbar a:before { +.comment-form .editor-toolbar a { + width: 24px; + height: 20px; +} +.editor-toolbar a:before { line-height: 25px; } +.comment-form .editor-toolbar a:before { + line-height: 18px; +} .upload-form-table .CodeMirror-scroll, .upload-form-table .CodeMirror { min-height: 120px; } -.upload-form-table .CodeMirror-scroll { +.CodeMirror-scroll { max-width: unset!important; } diff --git a/templates/site/torrents/upload.jet.html b/templates/site/torrents/upload.jet.html index 22679067..bdfdcd67 100644 --- a/templates/site/torrents/upload.jet.html +++ b/templates/site/torrents/upload.jet.html @@ -64,7 +64,7 @@ - + diff --git a/templates/site/torrents/view.jet.html b/templates/site/torrents/view.jet.html index c51e386f..78a08541 100644 --- a/templates/site/torrents/view.jet.html +++ b/templates/site/torrents/view.jet.html @@ -337,6 +337,7 @@ Modal.Init({ button: ["#reportPopup", "#tagPopup"] }); + {{ if !torrentFileExists(Torrent.Hash, Torrent.TorrentLink)}} + {{end}} {{if Torrent.StatsObsolete[1] }}