mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Desktop: Fixes #4491: Make config sidebar vertically scrollable, and make it grow horizontally depending on menu items
This commit is contained in:
parent
6f52107234
commit
414b3636d9
@ -729,14 +729,17 @@ class ConfigScreenComponent extends React.Component<any, any> {
|
||||
</div>
|
||||
) : null;
|
||||
|
||||
const rightStyle = { ...style, flex: 1 };
|
||||
delete style.width;
|
||||
|
||||
return (
|
||||
<div style={{ display: 'flex', flexDirection: 'row' }}>
|
||||
<div style={{ display: 'flex', flexDirection: 'row', height: this.props.style.height }}>
|
||||
<Sidebar
|
||||
selection={this.state.selectedSectionName}
|
||||
onSelectionChange={this.sidebar_selectionChange}
|
||||
sections={sections}
|
||||
/>
|
||||
<div style={style}>
|
||||
<div style={rightStyle}>
|
||||
{screenComp}
|
||||
{needRestartComp}
|
||||
<div style={containerStyle}>{settingComps}</div>
|
||||
|
@ -15,6 +15,8 @@ export const StyledRoot = styled.div`
|
||||
display: flex;
|
||||
background-color: ${(props: any) => props.theme.backgroundColor2};
|
||||
flex-direction: column;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
`;
|
||||
|
||||
export const StyledListItem = styled.a`
|
||||
|
Loading…
Reference in New Issue
Block a user