mirror of https://github.com/laurent22/joplin.git
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
parent
48f0c1c37b
commit
8d6cfdc292
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue