Skip to content

Commit 648ec3c

Browse files
author
Gusted
authored
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.
1 parent a9a440e commit 648ec3c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

web_src/less/_base.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2204,5 +2204,9 @@ table th[data-sortt-desc] {
22042204
> .dropdown.item {
22052205
position: initial;
22062206
}
2207+
2208+
.menu {
2209+
flex-direction: row;
2210+
}
22072211
}
22082212
}

web_src/less/_dashboard.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@
8181

8282
.ui.dropdown {
8383
max-width: 100%;
84+
85+
@media @mediaSm {
86+
> .menu {
87+
position: static;
88+
}
89+
}
8490
}
8591
}
8692
}

0 commit comments

Comments
 (0)