mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
実装 - PlanetHeaderにPrivate鍵表示
This commit is contained in:
@@ -37,7 +37,15 @@ module.exports = React.createClass({
|
|||||||
<div className='headerLabel'>
|
<div className='headerLabel'>
|
||||||
<span className='userName'>{currentUserName}</span><br/>
|
<span className='userName'>{currentUserName}</span><br/>
|
||||||
<span className='planetName'>{currentPlanetName}</span>
|
<span className='planetName'>{currentPlanetName}</span>
|
||||||
<button onClick={this.openPlanetSettingModal} className='menuBtn'>
|
|
||||||
|
{this.props.currentPlanet.public ? null : (
|
||||||
|
<div className='private'>
|
||||||
|
<i className='fa fa-lock'/>
|
||||||
|
<div className='privateTooltip'>Private planet</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
<button onClick={this.openPlanetSettingModal} className='menuBtn'>
|
||||||
<i className='fa fa-chevron-down'></i>
|
<i className='fa fa-chevron-down'></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -51,6 +51,35 @@ articleListWidth= 275px
|
|||||||
white-space nowrap
|
white-space nowrap
|
||||||
&:hover
|
&:hover
|
||||||
color darken(brandBorderColor, 30%)
|
color darken(brandBorderColor, 30%)
|
||||||
|
.private
|
||||||
|
position absolute
|
||||||
|
top 12px
|
||||||
|
right 38px
|
||||||
|
width 33px
|
||||||
|
height 33px
|
||||||
|
line-height 33px
|
||||||
|
text-align center
|
||||||
|
color inactiveColor
|
||||||
|
&:hover
|
||||||
|
color textColor
|
||||||
|
.privateTooltip
|
||||||
|
position fixed
|
||||||
|
z-index popupZIndex
|
||||||
|
background-color transparentify(invBackgroundColor, 80%)
|
||||||
|
color invTextColor
|
||||||
|
padding 10px
|
||||||
|
font-size 0.9em
|
||||||
|
line-height 0.9em
|
||||||
|
border-radius 5px
|
||||||
|
white-space nowrap
|
||||||
|
opacity 0
|
||||||
|
transition 0.1s
|
||||||
|
pointer-events none
|
||||||
|
margin-left -30px
|
||||||
|
&:hover .privateTooltip
|
||||||
|
opacity 1
|
||||||
|
|
||||||
|
|
||||||
.menuBtn
|
.menuBtn
|
||||||
position absolute
|
position absolute
|
||||||
top 12px
|
top 12px
|
||||||
|
|||||||
@@ -126,7 +126,7 @@
|
|||||||
background-color white
|
background-color white
|
||||||
.planetTooltip
|
.planetTooltip
|
||||||
position absolute
|
position absolute
|
||||||
z-index 500
|
z-index popupZIndex
|
||||||
background-color transparentify(invBackgroundColor, 80%)
|
background-color transparentify(invBackgroundColor, 80%)
|
||||||
color invTextColor
|
color invTextColor
|
||||||
padding 10px
|
padding 10px
|
||||||
|
|||||||
Reference in New Issue
Block a user