🎨(popover): Remove hardcoded width from code -> move to stylesheet

This commit is contained in:
Juan Tejada 2016-02-11 13:15:21 -08:00
parent c089328c1b
commit 76cbb97c2b
2 changed files with 2 additions and 1 deletions

View file

@ -1,5 +1,6 @@
@import "ui-variables";
@popover-width: 250px;
body.platform-win32 {
.category-picker {
@ -14,6 +15,7 @@ body.platform-win32 {
.menu {
background: @background-secondary;
width: @popover-width;
.header-container {
border-bottom: 0;

View file

@ -139,7 +139,6 @@ class Popover extends React.Component
popoverStyle =
'position': 'absolute'
'left': "calc(50% + #{@state.offset}px)"
'width': '250px'
'zIndex': 40
pointerStyle =
'position': 'absolute'