mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
fix lineAnchor bug, preview tooltip must be shown only markdown mode
This commit is contained in:
@@ -78,7 +78,12 @@ export default class ArticleEditor extends React.Component {
|
||||
mode={this.props.mode}
|
||||
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>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -12,9 +12,12 @@ marked()
|
||||
color lighten(brandColor, 5%)
|
||||
text-decoration underline
|
||||
background-color alpha(#FFC95C, 0.3)
|
||||
transform scale(1.2)
|
||||
&:visited
|
||||
color brandColor
|
||||
&.lineAnchor
|
||||
padding 0
|
||||
margin 0
|
||||
display inline
|
||||
hr
|
||||
border-top none
|
||||
border-bottom solid 1px borderColor
|
||||
|
||||
Reference in New Issue
Block a user