Skip to content

Commit

Permalink
Fix dashboard switching on Mobile (#20238)
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
Gusted authored Jul 28, 2022
1 parent 8e3da0e commit 9691d43
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web_src/less/_base.less
Original file line number Diff line number Diff line change
Expand Up @@ -2206,6 +2206,10 @@ table th[data-sortt-desc] {
> .dropdown.item {
position: initial;
}

.menu {
flex-direction: row;
}
}
}

Expand Down
6 changes: 6 additions & 0 deletions web_src/less/_dashboard.less
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@

.ui.dropdown {
max-width: 100%;

@media @mediaSm {
> .menu {
position: static;
}
}
}
}
}
Expand Down

0 comments on commit 9691d43

Please sign in to comment.