From 3e7101dd64e4cd5d9ecfd4dbe0c991aacf99bf87 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Tue, 2 May 2023 00:08:37 +0800 Subject: [PATCH] Improve "new-menu" (#24465) I am not sure what "new-menu" means, but I think we need to fix these problems: 1. it shouldn't have "stackable", which makes the items stacked when width is small. the `new-menu` already has `overflow: auto` 2. `justify-content: center` doesn't work with `overflow: auto` (for small width), so use `margin: auto` * https://bhch.github.io/posts/2021/04/centring-flex-items-and-allowing-overflow-scroll/ 3. `runner-new-menu` is dead code (copying & pasting ?) --- templates/explore/navbar.tmpl | 2 +- templates/repo/diff/image_diff.tmpl | 2 +- templates/user/auth/signup_openid_navbar.tmpl | 2 +- web_src/css/base.css | 7 ++++++- web_src/css/explore.css | 1 - web_src/css/runner.css | 4 ---- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/templates/explore/navbar.tmpl b/templates/explore/navbar.tmpl index 29eaa1e8c6..3a23df6992 100644 --- a/templates/explore/navbar.tmpl +++ b/templates/explore/navbar.tmpl @@ -1,4 +1,4 @@ -