Desktop: Fixes #1570: Prevent horizontal scrolling on Linux when a scrollbar is present in note list (#2062)

* Prevent horizontal scrolling on Linux when a scrollbar is present in the note list.

* max-width usage specifically to target Linux horizontal scroll problem.
pull/2075/head
boring10 2019-11-06 16:46:26 -05:00 committed by Laurent Cozic
parent 48f0c1c37b
commit 8d6cfdc292
1 changed files with 5 additions and 0 deletions

View File

@ -30,11 +30,16 @@ class NoteListComponent extends React.Component {
const itemHeight = 34;
// Note: max-width is used to specifically prevent horizontal scrolling on Linux when the scrollbar is present in the note list.
// Pull request: https://github.com/laurent22/joplin/pull/2062
const itemWidth = '100%';
let style = {
root: {
backgroundColor: theme.backgroundColor,
},
listItem: {
maxWidth: itemWidth,
height: itemHeight,
boxSizing: 'border-box',
display: 'flex',