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

Apply flex layout to RSS Rule Manager dialog #2691

Merged
merged 10 commits into from
Jul 18, 2024

Conversation

jevenski
Copy link
Contributor

This is basically a copy of the previous refined Ratio Rules dialog. Besides, I set some universal rules for general HTML elements like div, input, and select, instead of defining the display styles in each and every plugin separately.

  1. Desktop screens (equal to or wider than 768px):
    20240712182719

  2. Mobile screens (smaller than 768px):
    20240712182547

@stickz
Copy link
Collaborator

stickz commented Jul 17, 2024

Can we put the "Ok" and "Cancel" buttons beside each other on mobile to save space?

@@ -350,11 +350,13 @@ div.space {flex-grow: 1;}
/* No media query for `xs` since this is the default in Bootstrap */
/* Custom rules for medium devices */
div#tadd {max-width: 95vw;}
div#tadd .buttons-list {
div.dlg-window .buttons-list {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using this rule to set the buttons lists in all dialog windows.

margin: 0.5rem;
gap: 0.25rem;
display: flex;
flex-direction: column;
flex-direction: row;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change buttons direction from column to row on small screens.

@stickz
Copy link
Collaborator

stickz commented Jul 18, 2024

The global style changes in this pull request break a lot of things on the status bar and in the settings menu. We can't unify these things in style.css. They need to be applied individually to each of the plugins in their respective plugin.css files.

* Make responsive status bar

* Adjust disk usage meter according to refined status bar

* Adjust cpu load meter according to refined status bar

* Adjust port checker according to refined status bar

* Place status cells all in one line for mobile display

* Adapt CPU load meter size for different screen sizes

* Remove toggle IP display
@jevenski
Copy link
Contributor Author

These changes do cause come display issues on the settings dialog window and some other dialog windows, such as footer buttons going out of boundary, and text boxes becoming excessively large. However, the status bar should be fine. I didn't see any mess-ups from my test.

This was before the rest of the dialog windows are rewritten for flex layout. They are all going to be rewritten anyway, and eventually, the CSS styles should be simplified and unified, in my opinion. I made this change upfront, and will adapt other components to this change in the next steps. However, the status bar should be fine. I didn't see any mess-ups from my test.

@stickz
Copy link
Collaborator

stickz commented Jul 18, 2024

Okay, could you rebase jevenski:rssurlrewrite with Novik:develop ? We need to cleanup these files changed for future reference.

jevenski and others added 7 commits July 18, 2024 22:35
* Make responsive status bar

* Adjust disk usage meter according to refined status bar

* Adjust cpu load meter according to refined status bar

* Adjust port checker according to refined status bar

* Place status cells all in one line for mobile display

* Adapt CPU load meter size for different screen sizes

* Remove toggle IP display
@jevenski
Copy link
Contributor Author

The rebase process now seems to be done. 9 files are changed in total. Really had some troubles during the rebase process. I thought I was going to give this pull request up and make a new one.

@stickz
Copy link
Collaborator

stickz commented Jul 18, 2024

Okay, looks good thanks.

@stickz stickz merged commit f9c5f9b into Novik:develop Jul 18, 2024
@jevenski jevenski deleted the rssurlrewrite branch July 19, 2024 00:47
jevenski added a commit to jevenski/ruTorrent that referenced this pull request Jul 21, 2024
* Apply flex layout to RSS Rule Manager dialog

* Unify dialog window footer buttons list style

* Make responsive status bar (Novik#2690)

* Make responsive status bar

* Adjust disk usage meter according to refined status bar

* Adjust cpu load meter according to refined status bar

* Adjust port checker according to refined status bar

* Place status cells all in one line for mobile display

* Adapt CPU load meter size for different screen sizes

* Remove toggle IP display

* Apply flex layout to RSS Rule Manager dialog

* Unify dialog window footer buttons list style

* Apply flex layout to RSS Rule Manager dialog

* Unify dialog window footer buttons list style

* Make responsive status bar (Novik#2690)

* Make responsive status bar

* Adjust disk usage meter according to refined status bar

* Adjust cpu load meter according to refined status bar

* Adjust port checker according to refined status bar

* Place status cells all in one line for mobile display

* Adapt CPU load meter size for different screen sizes

* Remove toggle IP display

* Remove unwanted submodule which was added accidentally
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