-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Navbar rework for mobile (repo page and more) #14704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
44c3ed9
to
8dd1405
Compare
The concept is to have the navbar scrollable (visual guidance could be added quite easily, I suppose – whether things like blurring is wanted is another question), and put the settings button somewhere else so the user could find it much more easily. The dual-layer menu in the repo settings page is really inefficient due to high visual complexity, so removing that top layer. I think as the breadcrumb component is so eye-caching, the user would most probably find it familiar and naturally uses it to go back to repo home. A "back" button would be a waste of screen real estate, then. |
b3e826a
to
18974e0
Compare
Developing on the idea from silverwind, I'm afraid I can't do much better than this without relying on JavaScript. This fixes the bug on Safari (desktop and iOS) regarding gradients: cf. https://stackoverflow.com/questions/38391457/. Display of repo name is more aligned to that with GitHub's mobile view. Labels are wrapped in-line properly. Alignment isn't perfect at all time, but I find it more or less visually acceptable. Scrolling now works pretty smoothly on repo page. However there is a regression from last year's version at Gitea.com, that monochrome webkit scroll bars ( Sadly there isn't autofocus. There are two solutions without Javascript: nesting buttons with Worst case solution would be to (copy GItHub again and) modify |
Trying to port this to arc-green and noticed I'm unable to just do I propose converting most accent colors to hue-saturation doublets so we could easily derive colors with functions everywhere, or at least HSL triplets so alpha could be applied... |
Well, Was initially very concerned as every, single source seems to suggest that the Changes since last commit:
|
13b2416
to
e56dab5
Compare
e56dab5
to
00b0eb2
Compare
e183d04
to
83cf9e5
Compare
Late summary due to PC issues. Just noticed on my Firefox for Android that it uses linear gradient, so reverting back. Scroll bars should work just fine on all platforms. Unfortunately, elements might not stretch fully at certain zoom levels (e. g. initial height 40px, set margin-bottom to -10px, and result might be 50px or 49.60px depending on the zoom level). I'm not able to put a scroll bar for WebKit-based browsers with transparent background over navbar elements, therefore leaving it below in a white background. Some mistakes elsewhere were fixed as they created alignment problems with this PR. As with the spacer in the repo thing: Firefox always needs it; Chrome never needs it (tested on Chrome 62 on OS X 10.9.5); Safari doesn't seem to need it any more as of 14 (an earlier Tech Preview, as well as all previous versions needed it, don't have a current iOS version for testing). If someone finds a more reliable/concise way than this please let me know... |
83cf9e5
to
4b1736f
Compare
Codecov Report
@@ Coverage Diff @@
## master #14704 +/- ##
==========================================
+ Coverage 42.21% 42.25% +0.04%
==========================================
Files 767 774 +7
Lines 81624 82994 +1370
==========================================
+ Hits 34458 35072 +614
- Misses 41531 42227 +696
- Partials 5635 5695 +60
Continue to review full report at Codecov.
|
4b1736f
to
d5596e9
Compare
d5596e9
to
090cfa3
Compare
Hi @CL-Jeremy sorry this never got merged - if you're able to resolve the conflicts quickly - we can move this back to 1.15 but otherwise I'm going to move this to the 1.16 milestone and we can take another look at this then. |
Please resolve the conflicts. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 months. Thank you for your contributions. |
This PR stales for so long time and can not be merged. The UI has changed a lot and a lot of problems has been resolved by some recent PRs separately. Feel free to reopen it or pick it as a new one. 🙏 |
This proof of concept serves as an idea for more thorough UX improvement on mobile. As I'm not really experienced in frontend feature development, there are many issues to which I lack the knowledge to work out a solution.
For example, I don't know how to keep the
Author /
part inAuthor / repo-name [etc.]
separate in case of wrapping (currently implemented withdisplay: flex
), but leave the rest as one continuous line (currently when the repo name is too long, the labels would wrap to the next line even if there is space left in the previous line, since that has become effectively a block).The idea does come from GitHub, though they use a drop-down menu for excessive navbar menu items. At least in the current Gitea theme, it's hard even to have a half-way good-looking design as it is now with
new-menu
.If this concept gets adopted, it may be a good idea to also implement a similar strategy to the top bar, as there aren't many items there that will be used by the user on a daily basis. To my mind, having the avatar menu at all time in the top bar would make a lot more sense than the current design.
I do believe that out of the pending tasks for the next major release, the priority of mobile UX enhancements isn't really worth spending too much effort on as of right now. Still, I'd be very grateful if anybody picks up the idea and develops on that.
Testing on my iPhone SE. Would consider this progress as reasonably perceivable.