From 51fd4279f50baf46fdfbc2f454770f29a953f470 Mon Sep 17 00:00:00 2001 From: Rasmus Kaj Date: Wed, 29 May 2019 18:14:08 +0200 Subject: [PATCH] Improve size/pos of admin buttons. --- res/admin.js | 1 + res/photos.scss | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/res/admin.js b/res/admin.js index ed56841..f4e7f0b 100644 --- a/res/admin.js +++ b/res/admin.js @@ -309,6 +309,7 @@ var meta = details.querySelector('.meta'); if (meta) { p = d.createElement("p"); + p.className = 'admbuttons'; r = d.createElement("button"); r.onclick = rotate; r.innerHTML = "\u27f2"; diff --git a/res/photos.scss b/res/photos.scss index 83913df..a3d20d8 100644 --- a/res/photos.scss +++ b/res/photos.scss @@ -190,6 +190,18 @@ ul.alltags, ul.allpeople, ul.allplaces { max-height: 60vh; } +p.admbuttons { + display: flex; + flex-flow: row wrap; + justify-content: space-between; + margin: 1ex -.1em 0; + button { + flex-grow: .1; + margin: .1em; + padding: 0; + } +} + form { border: $border; margin: auto;