From e185f622f8b33303a0fa13a6a936c29ec204b9b2 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Mon, 3 Jul 2017 03:35:38 +0900 Subject: [PATCH] Fix bravery panel width from increasing Closes #9839 Addresses #9016 Auditors: Test Plan: 1. Open twitter.com 2. Enable `Block Scripts` 3. Click the counter 4. Make sure the panel width does not increase --- app/renderer/components/main/braveryPanel.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/renderer/components/main/braveryPanel.js b/app/renderer/components/main/braveryPanel.js index 93ec12c382b..8f114200234 100644 --- a/app/renderer/components/main/braveryPanel.js +++ b/app/renderer/components/main/braveryPanel.js @@ -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', maxHeight: '10vh' }, braveryPanel_compact__body__ul__li: { padding: '5px 0', + // #9839: Avoid the panel width from increasing + width: 0, + whiteSpace: 'nowrap', + ':first-of-type': { paddingTop: 0 },