From 648ec3cfed12ffcf56b20efb9ebb1b2af63d80fa Mon Sep 17 00:00:00 2001 From: Gusted Date: Thu, 28 Jul 2022 19:04:29 +0200 Subject: [PATCH] Fix dashboard switching on Mobile (#20238) (#20239) - This is a regression of improving mobile experience on Gitea, currently organization dashboard aren't readable and the popup won't show up when you want to switch between users/organization(as we saw in #19978). - This patch fixes that, by allowing the popup to allocate the required pixels(for some absurd reason, z-index doesn't work on the popup, so it's not able to render over the existing elements, we can investigate later of why this is). And also remove the additional dropdown menu for the pages link, so it's one unified list which then can be displayed as rows. --- web_src/less/_base.less | 4 ++++ web_src/less/_dashboard.less | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/web_src/less/_base.less b/web_src/less/_base.less index 638801e392..cfaa2e3c4d 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -2204,5 +2204,9 @@ table th[data-sortt-desc] { > .dropdown.item { position: initial; } + + .menu { + flex-direction: row; + } } } diff --git a/web_src/less/_dashboard.less b/web_src/less/_dashboard.less index 54cb74b6ee..d87f6b4ac8 100644 --- a/web_src/less/_dashboard.less +++ b/web_src/less/_dashboard.less @@ -81,6 +81,12 @@ .ui.dropdown { max-width: 100%; + + @media @mediaSm { + > .menu { + position: static; + } + } } } }