aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorKana <[email protected]>2018-05-13 00:01:49 -0300
committerGitHub <[email protected]>2018-05-13 00:01:49 -0300
commite07e87e061a84d559026e9eae74e049519049ae1 (patch)
tree0454426decb665eca3402e7043901dc6c972eac9 /public
parentMerge pull request #101 from RyoshiKayo/urls (diff)
parentFix typo (diff)
downloadhost.fuwn.me-e07e87e061a84d559026e9eae74e049519049ae1.tar.xz
host.fuwn.me-e07e87e061a84d559026e9eae74e049519049ae1.zip
Merge pull request #107 from NadyaNayme/Album-Delete
Album View File Deletion
Diffstat (limited to 'public')
-rw-r--r--public/css/style.css3
-rw-r--r--public/js/dashboard.js2
2 files changed, 3 insertions, 2 deletions
diff --git a/public/css/style.css b/public/css/style.css
index ac3959d..695a1d9 100644
--- a/public/css/style.css
+++ b/public/css/style.css
@@ -102,8 +102,9 @@ section#auth input, section#auth a {
}
section#dashboard .table { font-size: 12px }
-section#dashboard div#table div.column { display:flex; width: 200px; height: 200px; margin: 9px; background: #f9f9f9; overflow: hidden; align-items: center; }
+section#dashboard div#table div.column { display:flex; width: 200px; height: 200px; margin: 9px; background: #f9f9f9; overflow: hidden; flex-wrap: wrap; align-items: center; }
section#dashboard div#table div.column a { width: 100%; }
+section#dashboard div#table div.column a:first-child { height: 180px; }
section#dashboard div#table div.column a img { width:200px; }
.select-wrapper {
diff --git a/public/js/dashboard.js b/public/js/dashboard.js
index a4de774..8afc89d 100644
--- a/public/js/dashboard.js
+++ b/public/js/dashboard.js
@@ -142,7 +142,7 @@ panel.getUploads = function(album = undefined, page = undefined){
var div = document.createElement('div');
div.className = "column is-2";
if(item.thumb !== undefined)
- div.innerHTML = `<a href="${item.file}" target="_blank"><img src="${item.thumb}"/></a>`;
+ div.innerHTML = `<a href="${item.file}" target="_blank"><img src="${item.thumb}"/></a><a class="button is-small is-danger is-outlined" title="Delete file" onclick="panel.deleteFile(${item.id})"><span class="icon is-small"><i class="fa fa-trash-o"></i></span></a>`;
else
div.innerHTML = `<a href="${item.file}" target="_blank"><h1 class="title">.${item.file.split('.').pop()}</h1></a>`;
table.appendChild(div);