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

Fix bravery panel width from increasing #9840

Merged
merged 1 commit into from
Jul 4, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions app/renderer/components/main/braveryPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -935,14 +935,17 @@ const styles = StyleSheet.create({
marginBottom: '.75rem'
},
braveryPanel_compact__body__ul: {
padding: '0 .5rem',
margin: '0 0 .75rem 0',
wordBreak: 'break-all',
padding: '0 .5rem 1rem',
margin: '0 0 .25rem 0',
Copy link
Contributor Author

@luixxiul luixxiul Jul 2, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are set to make the list scrollable (y axis) to its bottom. I could not find out how to do the same thing for x axis. It still works though.

maxHeight: '10vh'
},
braveryPanel_compact__body__ul__li: {
padding: '5px 0',

// #9839: Avoid the panel width from increasing
width: 0,
whiteSpace: 'nowrap',

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow elegant fix

':first-of-type': {
paddingTop: 0
},
Expand Down