1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 18:56:22 +00:00

fix lineAnchor bug, preview tooltip must be shown only markdown mode

This commit is contained in:
Rokt33r
2016-01-05 02:15:24 +09:00
parent 08b0c43382
commit 2e3a60cf6e
2 changed files with 10 additions and 2 deletions

View File

@@ -78,7 +78,12 @@ export default class ArticleEditor extends React.Component {
mode={this.props.mode} mode={this.props.mode}
code={this.props.content} code={this.props.content}
/> />
<div className='ArticleDetail-panel-content-tooltip'>Press ESC to watch Preview</div> {this.props.mode === 'markdown'
? (
<div className='ArticleDetail-panel-content-tooltip'>Press ESC to watch Preview</div>
)
: null
}
</div> </div>
) )
} }

View File

@@ -12,9 +12,12 @@ marked()
color lighten(brandColor, 5%) color lighten(brandColor, 5%)
text-decoration underline text-decoration underline
background-color alpha(#FFC95C, 0.3) background-color alpha(#FFC95C, 0.3)
transform scale(1.2)
&:visited &:visited
color brandColor color brandColor
&.lineAnchor
padding 0
margin 0
display inline
hr hr
border-top none border-top none
border-bottom solid 1px borderColor border-bottom solid 1px borderColor