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

[UI/UX] Fix some visual issues related to logs, dialogs, and RTL layout #3207

Merged
merged 1 commit into from Nov 21, 2023

Conversation

arielj
Copy link
Collaborator

@arielj arielj commented Nov 5, 2023

This PR fixes most of the comments from this report #3204

I'll add comments in the diff itself

Fixes #3204


Use the following Checklist if you have changed something on the Backend or Frontend:

  • Tested the feature and it's working on a current and clean install.
  • Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
  • Created / Updated Tests (If necessary)
  • Created / Updated documentation (If necessary)

@arielj arielj added the pr:ready-for-review Feature-complete, ready for the grind! :P label Nov 5, 2023
@arielj arielj requested review from a team, flavioislima, CommandMC, Etaash-mathamsetty, Nocccer and imLinguin and removed request for a team November 5, 2023 13:47
.isRTL .Sidebar.collapsed .SidebarItemWithSubmenu:hover .SidebarSubmenu,
.isRTL .Sidebar.collapsed .SidebarItemWithSubmenu:focus-within .SidebarSubmenu {
right: var(--sidebar-width);
left: auto;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

submenu for settings and stores was floating on the left side of the screen for RTL languages

::-webkit-scrollbar-corner,
::-webkit-resizer {
background: var(--gradient-body-background, var(--body-background));
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the corner at the bottom of the logs was white

@@ -143,7 +143,7 @@
}
}

.isRTL {
&.isRTL {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this fixes the menu and settings buttons too close, and the menu opening on the wrong direction

.backButton {
left: auto !important;
right: 12px;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the menu and settings buttons were overlapping the back button

max-height: 95vh;
max-width: 80vw;
height: 90vh;
max-height: 1000px;
Copy link
Collaborator Author

@arielj arielj Nov 5, 2023

Choose a reason for hiding this comment

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

this makes the install modal (and, weirdly, the settings modal too) taller and wider

@@ -8,11 +8,12 @@
grid-template-rows: 1fr;
column-gap: 0.5rem;
height: 25em;
width: 100%;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

if no log, the log area was too narrow


.log-buttongroup {
display: flex;
flex-direction: column;
width: 150px;
width: 180px;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added some space to display game names in the log screen

} = this.state

const isRTL = RTL_LANGUAGES.includes(language)
document.body.classList.toggle('isRTL', isRTL)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we need the direction: rtl in the body to fix one issue with the scrollbar overlapping the content

there seems to be a bug in chrome that setting direction: rtl in the body doesn't move the scrollbar to the left side of the screen, but it seems to be a bug, we can't do much

it would work if the scroll were in a nested element, but then that breaks controllers

Copy link
Member

@flavioislima flavioislima left a comment

Choose a reason for hiding this comment

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

Tested here and for me looks good, but maybe @Doods0 wants to take a second look at it.

@flavioislima flavioislima merged commit 32e16d4 into main Nov 21, 2023
13 checks passed
@flavioislima flavioislima deleted the visual-fixes branch November 21, 2023 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:ready-for-review Feature-complete, ready for the grind! :P
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New update introduced problems with right-to-left languages.
2 participants