-
-
Notifications
You must be signed in to change notification settings - Fork 480
[UI/UX] Fix some visual issues related to logs, dialogs, and RTL layout #3207
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,11 @@ body { | |
background: var(--accent); | ||
} | ||
|
||
::-webkit-scrollbar-corner, | ||
::-webkit-resizer { | ||
background: var(--gradient-body-background, var(--body-background)); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the corner at the bottom of the logs was white |
||
|
||
.simple-keyboard { | ||
position: absolute; | ||
z-index: 10; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,7 +143,7 @@ | |
} | ||
} | ||
|
||
.isRTL { | ||
&.isRTL { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
.gameTools { | ||
right: auto !important; | ||
left: 0px; | ||
|
@@ -156,6 +156,10 @@ | |
left: auto !important; | ||
right: 1rem; | ||
} | ||
.backButton { | ||
left: auto !important; | ||
right: 12px; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the menu and settings buttons were overlapping the back button |
||
} | ||
|
||
.gameConfig { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
.InstallModal__dialog { | ||
width: 38vw; | ||
height: fit-content; | ||
width: 700px; | ||
min-height: fit-content; | ||
min-width: fit-content; | ||
max-height: 95vh; | ||
max-width: 80vw; | ||
height: 90vh; | ||
max-height: 1000px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
} | ||
|
||
.InstallModal__dialog > .anticheatInfo { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,11 +8,12 @@ | |
grid-template-rows: 1fr; | ||
column-gap: 0.5rem; | ||
height: 25em; | ||
width: 100%; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added some space to display game names in the log screen |
||
gap: 1rem; | ||
overflow-y: auto; | ||
overflow-x: hidden; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -790,9 +790,13 @@ class GlobalState extends PureComponent<Props> { | |
libraryStatus, | ||
sidebarCollapsed, | ||
hideChangelogsOnStartup, | ||
lastChangelogShown | ||
lastChangelogShown, | ||
language | ||
} = this.state | ||
|
||
const isRTL = RTL_LANGUAGES.includes(language) | ||
document.body.classList.toggle('isRTL', isRTL) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we need the there seems to be a bug in chrome that setting it would work if the scroll were in a nested element, but then that breaks controllers |
||
|
||
storage.setItem('updates', JSON.stringify(gameUpdates)) | ||
storage.setItem('sidebar_collapsed', JSON.stringify(sidebarCollapsed)) | ||
storage.setItem('hide_changelogs', JSON.stringify(hideChangelogsOnStartup)) | ||
|
There was a problem hiding this comment.
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