Commit 322643e7 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Hide toolbar in markdown preview mode

parent f7a9ced2
...@@ -72,7 +72,8 @@ ...@@ -72,7 +72,8 @@
Preview Preview
</a> </a>
</li> </li>
<li class="md-header-toolbar"> <li class="md-header-toolbar"
:class="{ active: !previewMarkdown }">
<toolbar-button <toolbar-button
tag="**" tag="**"
button-title="Add bold text" button-title="Add bold text"
......
...@@ -82,8 +82,14 @@ ...@@ -82,8 +82,14 @@
} }
} }
.md-header-toolbar { .nav-links {
li.md-header-toolbar {
margin-left: auto; margin-left: auto;
display: none;
&.active {
display: block;
}
@media(max-width: $screen-xs-max) { @media(max-width: $screen-xs-max) {
flex: none; flex: none;
...@@ -93,8 +99,10 @@ ...@@ -93,8 +99,10 @@
padding-top: $gl-padding-top; padding-top: $gl-padding-top;
padding-bottom: $gl-padding-top; padding-bottom: $gl-padding-top;
} }
}
} }
.referenced-users { .referenced-users {
color: $gl-text-color; color: $gl-text-color;
padding-top: 10px; padding-top: 10px;
......
...@@ -6,7 +6,7 @@ module WithPerformanceBar ...@@ -6,7 +6,7 @@ module WithPerformanceBar
end end
def peek_enabled? def peek_enabled?
return true if Rails.env.development? # return true if Rails.env.development?
return false unless Gitlab::PerformanceBar.enabled?(current_user) return false unless Gitlab::PerformanceBar.enabled?(current_user)
if RequestStore.active? if RequestStore.active?
......
---
title: Hide markdown toolbar in preview mode
merge_request:
author:
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment