mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-04 07:10:06 +08:00
🎨(popover): Remove hardcoded width from code -> move to stylesheet
This commit is contained in:
parent
c089328c1b
commit
76cbb97c2b
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue