Skip to content

Commit fb4dfba

Browse files
committed
modify: change layout for config modal
1 parent d19ff3f commit fb4dfba

2 files changed

Lines changed: 23 additions & 7 deletions

File tree

browser/main/modals/PreferencesModal/PreferencesModal.styl

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
11
.root
22
modal()
3-
max-width 540px
4-
min-height 400px
3+
max-width 800px
4+
min-height 500px
55
height 80%
66
overflow hidden
77
position relative
88

9-
.nav
9+
.top-bar
1010
absolute top left right
1111
height 50px
1212
background-color $ui-backgroundColor
1313
border-bottom solid 1px $ui-borderColor
14+
p
15+
text-align center
16+
font-size 18px
17+
line-height 50px
18+
19+
.nav
20+
absolute top left right
21+
top 50px
22+
left 0
23+
width 140px
24+
margin-left 30px
25+
margin-top 20px
26+
background-color $ui-backgroundColor
1427

1528
.nav-button
29+
font-size 14px
30+
text-align left
1631
width 80px
17-
height 50px
32+
padding 7px 0
1833
border none
1934
background-color transparent
2035
color #939395
@@ -34,6 +49,7 @@
3449
.content
3550
absolute left right bottom
3651
top 50px
52+
left 140px
3753
overflow-y auto
3854

3955
body[data-theme="dark"]

browser/main/modals/PreferencesModal/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ class Preferences extends React.Component {
8888
key={tab.target}
8989
onClick={(e) => this.handleNavButtonClick(tab.target)(e)}
9090
>
91-
<i styleName='nav-button-icon'
92-
className={'fa fa-' + tab.icon}
93-
/>
9491
<span styleName='nav-button-label'>
9592
{tab.label}
9693
</span>
@@ -104,6 +101,9 @@ class Preferences extends React.Component {
104101
tabIndex='-1'
105102
onKeyDown={(e) => this.handleKeyDown(e)}
106103
>
104+
<div styleName='top-bar'>
105+
<p>Your menu for Boostnote</p>
106+
</div>
107107
<div styleName='nav'>
108108
{navButtons}
109109
</div>

0 commit comments

Comments
 (0)