Skip to content
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

Add a responsive top menu #2696

Merged
merged 4 commits into from
Jul 28, 2024
Merged

Add a responsive top menu #2696

merged 4 commits into from
Jul 28, 2024

Conversation

jevenski
Copy link
Contributor

The previous step of adopting full bootstrap was a huge leap forward, reducing a huge amount of work adding responsiveness by using bootstrap's built-in components and functionality. As for the looks, there are 2 major changes:

  • Borders were added to top menu buttons, which made button boundaries easier to spot on mobile screens.
  • Buttons' hover effect was set to brightness filter. The previous implementation was using a rectangle tile as the background image, which would become odd on mobile screens, because the buttons are going to grow, the background tiles, however, remains the same size.

Some current TODO's:

  • I really want to replace the image icons with bootstrap's monocolor svg icons. This should be approved beforehand, though.
  • The big gap on mobile screens between the left side panel and the main torrent list is also on the agenda for rewriting. We can use a bootstrap's offcanvas on the side panel.
  1. Desktop screens:
    20240723212046

  2. Mobile screens:
    20240723212104

  3. Mobile screens with top menu open:
    20240723214003

jevenski added 2 commits July 23, 2024 21:38
The previous step of adopting full bootstrap was a huge leap forward, reducing a huge amount of work adding responsiveness by using bootstrap's built-in components and functionality.
As for the looks, there are 2 major changes:
- Borders were added to top menu buttons, which made button boundaries easier to spot on mobile screens.
- Buttons' hover effect was set to `brightness` filter. The previous implementation was using a rectangle tile as the background image, which would become odd on mobile screens, because the buttons are going to grow, the background tiles, however, remains the same size.

Some current TODO's:
- I really want to replace the image icons with bootstrap's monocolor svg icons. This should be approved beforehand, though.
- The big gap on mobile screens between the left side panel and the main torrent list is also on the agenda for rewriting. We can use a bootstrap's offcanvas on the side panel.
@stickz
Copy link
Collaborator

stickz commented Jul 23, 2024

Could we remove the borders on the top menu icons on desktop displays?

Also, can we fix the fix the theme breakage with the top menu? I believe it's caused from changing from div#t to nav#t.

- Reverted the top menu from `<nav>` to `<div>` for compatility for diffreent themes.
- Removed top menu buttons' borders on desktop screens.
css/style.css Show resolved Hide resolved
@jevenski
Copy link
Contributor Author

The color schemes of the collapse menu for every theme still need to be adjusted. Please allow a few more moments.

@jevenski
Copy link
Contributor Author

All the themes are now modified and tested. Everything should fit in with the overall display styles of each theme now.

@stickz stickz merged commit 81d4bda into Novik:develop Jul 28, 2024
@jevenski jevenski deleted the flex-top-menu branch July 28, 2024 13:37
jevenski added a commit to jevenski/ruTorrent that referenced this pull request Jul 28, 2024
* Add a responsive top menu

The previous step of adopting full bootstrap was a huge leap forward, reducing a huge amount of work adding responsiveness by using bootstrap's built-in components and functionality.
As for the looks, there are 2 major changes:
- Borders were added to top menu buttons, which made button boundaries easier to spot on mobile screens.
- Buttons' hover effect was set to `brightness` filter. The previous implementation was using a rectangle tile as the background image, which would become odd on mobile screens, because the buttons are going to grow, the background tiles, however, remains the same size.

Some current TODO's:
- I really want to replace the image icons with bootstrap's monocolor svg icons. This should be approved beforehand, though.
- The big gap on mobile screens between the left side panel and the main torrent list is also on the agenda for rewriting. We can use a bootstrap's offcanvas on the side panel.

* Add bootstrap js functionality

* Fix theme compatibility on top menu

- Reverted the top menu from `<nav>` to `<div>` for compatility for diffreent themes.
- Removed top menu buttons' borders on desktop screens.

* Adapt all themes to responsive top menu
@jevenski jevenski mentioned this pull request Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants