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

[Bug Fix] Fix scene markers editor mobile UI #1718

Merged

Conversation

liquid-flow
Copy link
Contributor

@liquid-flow liquid-flow commented Sep 10, 2021

Scope

Scene -> Markers

This PR fixes the mobile view of the scene markers editor on 320px and 576px breakpoints. It also includes some minor refactoring and UI improvements for the components in scope.

Testing

  1. Launch the server: ./stash
  2. Launch UI dev server: make ui-start
  3. Navigate to any scene
  4. Select Markers tab
  5. Check the layout on the following breakpoints: 320px, 575px, 576px, 767px, 768px, 1023px, 1024px, 1199px, 1200px

Screenshots

320px

Before After
before-320 after-320

576px

Before After
before-576 after-576

768px

Before After
before-768 after-768

1024

Before After
before-1024 after-1024

1200px

Before After
before-1200 after-1200

@liquid-flow liquid-flow changed the title [Bug Fix] Fix scene markers editor mobile layout [Bug Fix] Fix scene markers editor mobile UI Sep 10, 2021
@gitgiggety
Copy link
Contributor

On a phone in landscape the Time input is already shown on the same line as Primary tag but the label doesn't fit and is wrapped to Tim + e (or at least on my phone, and when emulating iPhone 6/7/8 (Plus)). Would be nice if that was fixed as well (in other words: keep showing the Time input on it's own line until the screen is (much?) wider)

@liquid-flow liquid-flow force-pushed the fix-ui-markers-editor-fields-mobile branch from e14802c to af00fa3 Compare September 11, 2021 08:47
Copy link
Contributor Author

@liquid-flow liquid-flow left a comment

Choose a reason for hiding this comment

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

@gitgiggety Good catch 👍 I did some further improvements. Please, check when you have time.

@@ -93,7 +93,7 @@ export const DurationInput: React.FC<IProps> = (props: IProps) => {
}

return (
<Form.Group className={`duration-input ${props.className}`}>
<div className={`duration-input ${props.className}`}>
Copy link
Contributor Author

@liquid-flow liquid-flow Sep 11, 2021

Choose a reason for hiding this comment

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

This way we avoid adding the form-group class, which adds some margin at the bottom and thus makes all the forms containing DurationInput look inconsistent with the rest of the form inputs. You can check the input in the spots where it's used:

  1. Settings -> Interface -> Maximum loop duration
  2. Settings -> DLNA -> Enable temporarily
  3. Movies -> New -> Duration
  4. Scenes -> Filter -> Duration

@@ -217,6 +217,7 @@ div.react-select__control {
border-color: $secondary;
color: $text-color;
cursor: pointer;
white-space: nowrap;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To avoid long placeholder text bloating text inputs

@@ -78,7 +78,7 @@ hr {
.nav-tabs {
border: none;
margin: auto;
margin-bottom: 0.5rem;
margin-bottom: 1.5rem;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Render some space between the tabs and the form to separate them visually.

@WithoutPants WithoutPants added this to the Version 0.10.0 milestone Sep 14, 2021
@WithoutPants WithoutPants added the bug Something isn't working label Sep 14, 2021
Copy link
Collaborator

@WithoutPants WithoutPants left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

@WithoutPants WithoutPants merged commit 612ecb7 into stashapp:develop Sep 14, 2021
@liquid-flow liquid-flow deleted the fix-ui-markers-editor-fields-mobile branch September 16, 2021 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants