diff --git a/public/s/css/w0bm.css b/public/s/css/w0bm.css
index aa2d43c..ec1607e 100644
--- a/public/s/css/w0bm.css
+++ b/public/s/css/w0bm.css
@@ -120,10 +120,9 @@ html[theme="orange"] .image-brand {
.tag {
box-shadow: 1px 1px 1px black;
display: grid;
- grid-template-rows: auto;
- grid-template-columns: 1fr auto;
- margin: 10px;
- margin-right: 10px;
+ margin: 5px;
+ grid-template-columns: auto;
+ grid-template-rows: 1fr;
}
.navigation-rechts {
@@ -148,4 +147,15 @@ html[theme="orange"] .image-brand {
.dropdown-menu.shii {
width: auto;
+}
+
+@media (min-width: 900px) {
+ .tags {
+ grid-template-columns: repeat(auto-fill, 20em);
+ justify-content: center;
+ }
+}
+
+.tag img {
+ width: 100%;
}
\ No newline at end of file
diff --git a/src/inc/routes/toptags.mjs b/src/inc/routes/toptags.mjs
index 5e4a982..47713b3 100644
--- a/src/inc/routes/toptags.mjs
+++ b/src/inc/routes/toptags.mjs
@@ -4,20 +4,22 @@ import lib from "../../inc/lib.mjs";
import f0cklib from "../routeinc/f0cklib.mjs";
export default (router, tpl) => {
- router.get(/^\/tags$/,lib.loggedin, async (req, res) => {
+ router.get(/^\/tags$/, async (req, res) => {
const phrase = cfg.websrv.phrases[~~(Math.random() * cfg.websrv.phrases.length)];
+ const nsfp = cfg.nsfp.map(n => `${n}`);
+
const toptags = await db`
SELECT t.id, t.tag, COUNT(DISTINCT ta.item_id) AS total_items
FROM tags t
LEFT JOIN tags_assign ta ON t.id = ta.tag_id
+ WHERE t.id not in (${db.unsafe(nsfp)})
GROUP BY t.id, t.tag
ORDER BY total_items DESC
LIMIT 500
;
`;
-
res.reply({
body: tpl.render('tags', {
toptags,
diff --git a/src/index.mjs b/src/index.mjs
index a0895a7..ceda4a9 100644
--- a/src/index.mjs
+++ b/src/index.mjs
@@ -110,7 +110,7 @@ process.on('unhandledRejection', err => {
db({
user_id: +user[0].id,
mode: user[0].mode ?? 0,
- theme: req.session.theme ?? 'f0ck',
+ theme: req.session.theme ?? 'atmos',
fullscreen: req.session.fullscreen || 0
}, 'user_id', 'mode', 'theme', 'fullscreen')
}
diff --git a/views/item.html b/views/item.html
index 49741d5..5f8d230 100644
--- a/views/item.html
+++ b/views/item.html
@@ -114,24 +114,6 @@
- @if(session)
-