From accb501e925095c66bbf58007038a883b94e73ed Mon Sep 17 00:00:00 2001 From: julian laplace Date: Mon, 31 Oct 2022 16:40:54 +0100 Subject: css... --- bucky/util/auth.js | 5 +++-- public/assets/css/bucky.css | 24 +++++++++++++++++------- views/partials/threads.ejs | 3 ++- 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/bucky/util/auth.js b/bucky/util/auth.js index b49b176..401ba6c 100644 --- a/bucky/util/auth.js +++ b/bucky/util/auth.js @@ -110,14 +110,15 @@ var auth = (module.exports = { login: function (req, res) { if (req.isAuthenticated()) { - let ua = useragent.parse(req.headers["user-agent"]); + // let ua = useragent.parse(req.headers["user-agent"]); let { returnTo } = req.session; if ( !returnTo || returnTo.startsWith("/login") || returnTo.startsWith("/index") ) { - returnTo = ua.isMobile ? "/stream" : "/index"; + // returnTo = ua.isMobile ? "/stream" : "/index"; + returnTo = "/stream"; } delete req.session.returnTo; console.log(">> logged in", req.user.get("username")); diff --git a/public/assets/css/bucky.css b/public/assets/css/bucky.css index c1013e7..10f5059 100644 --- a/public/assets/css/bucky.css +++ b/public/assets/css/bucky.css @@ -86,9 +86,6 @@ h1 { .bluebox input[type="text"] { border: 1px solid #000; font-size: 12px; - position: relative; - top: 1px; - margin-bottom: 5px; } .bluebox big { display: block; @@ -209,14 +206,27 @@ tr { padding: 0; } #hootbox form { - padding: 4px; + padding: 0.25rem; + display: flex; + flex-flow: row wrap; + justify-content: center; + align-items: center; + width: 100%; + margin-bottom: 0.5rem; } #hootbox input[type="text"] { - width: calc(100% - 57px); - margin-left: 3px; + flex: 1; + margin: 0; + font-size: 0.75rem; + padding: 0.25rem; +} +#hootbox .errors { + width: 100%; } #hootbox button { - width: 44px; + min-width: 3rem; + padding: 3px; + font-size: 11px; } #hoots { width: 100%; diff --git a/views/partials/threads.ejs b/views/partials/threads.ejs index be3a901..80453f7 100644 --- a/views/partials/threads.ejs +++ b/views/partials/threads.ejs @@ -30,11 +30,12 @@ -- cgit v1.2.3-70-g09d2