Hide toolbar in markdown preview mode
This commit is contained in:
parent
f7a9ced235
commit
322643e740
4 changed files with 25 additions and 11 deletions
|
@ -72,7 +72,8 @@
|
|||
Preview
|
||||
</a>
|
||||
</li>
|
||||
<li class="md-header-toolbar">
|
||||
<li class="md-header-toolbar"
|
||||
:class="{ active: !previewMarkdown }">
|
||||
<toolbar-button
|
||||
tag="**"
|
||||
button-title="Add bold text"
|
||||
|
|
|
@ -82,19 +82,27 @@
|
|||
}
|
||||
}
|
||||
|
||||
.md-header-toolbar {
|
||||
margin-left: auto;
|
||||
.nav-links {
|
||||
li.md-header-toolbar {
|
||||
margin-left: auto;
|
||||
display: none;
|
||||
|
||||
@media(max-width: $screen-xs-max) {
|
||||
flex: none;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
padding-top: $gl-padding-top;
|
||||
padding-bottom: $gl-padding-top;
|
||||
&.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@media(max-width: $screen-xs-max) {
|
||||
flex: none;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
padding-top: $gl-padding-top;
|
||||
padding-bottom: $gl-padding-top;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.referenced-users {
|
||||
color: $gl-text-color;
|
||||
padding-top: 10px;
|
||||
|
|
|
@ -6,7 +6,7 @@ module WithPerformanceBar
|
|||
end
|
||||
|
||||
def peek_enabled?
|
||||
return true if Rails.env.development?
|
||||
# return true if Rails.env.development?
|
||||
return false unless Gitlab::PerformanceBar.enabled?(current_user)
|
||||
|
||||
if RequestStore.active?
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Hide markdown toolbar in preview mode
|
||||
merge_request:
|
||||
author:
|
||||
type: changed
|
Loading…
Reference in a new issue