Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
prevent Dialog from being uncloseable with long text
Browse files Browse the repository at this point in the history
- Fix #7930
- Auditors: @luixxiul
  • Loading branch information
cezaraugusto committed Apr 24, 2017
1 parent 506036e commit c9b122f
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion app/renderer/components/styles/commonStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,29 @@ const styles = StyleSheet.create({
// Issue #7949
padding: `${globalStyles.spacing.dialogInsideMargin} 30px`,
position: 'absolute',
top: globalStyles.spacing.dialogTopOffset
top: globalStyles.spacing.dialogTopOffset,
// Issue #7930
overflowY: 'auto',
overflowX: 'hidden',
maxWidth: '90%',
maxHeight: '90%',
boxSizing: 'border-box',

// Add a custom scrollbar for the element
'::-webkit-scrollbar': {
width: '10px'
},
'::-webkit-scrollbar-thumb': {
background: globalStyles.color.braveOrange,
// same as primary button
boxShadow: '0px 1px 5px -1px rgba(0, 0, 0, 0.5)',
// match dialog radius
borderRadius: '4px'
},
'::-webkit-scrollbar-track': {
boxShadow: 'inset 0 0 4px rgba(0,0,0, 0.3)',
borderRadius: '4px'
}
},

// itemList.less
Expand Down

0 comments on commit c9b122f

Please sign in to comment.