summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorSheogorath2019-06-04 16:09:26 +0200
committerGitHub2019-06-04 16:09:26 +0200
commitae32a129303fd14b3b2bd2f5b7bb0b0c0c8a7f81 (patch)
tree78f9f1be4c48a5dad80b332e2727ecc4835d7ee4 /public/js
parent9140ca3c9602b2991b187396c153f2a36f68e8a6 (diff)
parent9e7b081bd934e4245eaa0ae83abcad94b473d622 (diff)
Merge pull request #93 from ttasovac/master
fixed styling of slides preview
Diffstat (limited to 'public/js')
-rw-r--r--public/js/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/js/index.js b/public/js/index.js
index d5345a8c..ff381598 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -2740,6 +2740,7 @@ function updateViewInner () {
delete md.metaError
var rendered = md.render(value)
if (md.meta.type && md.meta.type === 'slide') {
+ ui.area.view.addClass('black')
var slideOptions = {
separator: '^(\r\n?|\n)---(\r\n?|\n)$',
verticalSeparator: '^(\r\n?|\n)----(\r\n?|\n)$'
@@ -2756,6 +2757,7 @@ function updateViewInner () {
if (lastMeta.type && lastMeta.type === 'slide') {
refreshView()
ui.area.markdown.removeClass('slides')
+ ui.area.view.removeClass('black')
appState.syncscroll = true
checkSyncToggle()
}