mirror of https://github.com/xwiki-labs/cryptpad
Fix some mermaid graphs and update default colors
This commit is contained in:
parent
33818cdc93
commit
04fe289bf8
|
@ -331,6 +331,14 @@
|
|||
line-height: 1em;
|
||||
}
|
||||
}
|
||||
svg {
|
||||
* {
|
||||
max-width: unset;
|
||||
max-height: unset;
|
||||
font-size: unset;
|
||||
line-height: unset;
|
||||
}
|
||||
}
|
||||
ul, ol {
|
||||
ul, ol {
|
||||
margin: 0;
|
||||
|
|
|
@ -403,6 +403,10 @@ define([
|
|||
updateLocalColors(md.color, md.backColor);
|
||||
}
|
||||
});
|
||||
|
||||
return {
|
||||
updateLocalColors: updateLocalColors
|
||||
};
|
||||
};
|
||||
|
||||
var mkFilePicker = function (framework, editor) {
|
||||
|
@ -473,7 +477,7 @@ define([
|
|||
mkThemeButton(framework);
|
||||
mkPrintButton(framework, editor, $content, $print);
|
||||
mkSlideOptionsButton(framework, slideOptions, $toolbarDrawer);
|
||||
mkColorConfiguration(framework, $modal);
|
||||
var colors = mkColorConfiguration(framework, $modal);
|
||||
mkFilePicker(framework, editor);
|
||||
mkSlidePreviewPane(framework, $contentContainer);
|
||||
|
||||
|
@ -518,9 +522,13 @@ define([
|
|||
return CodeMirror.getHeadingText();
|
||||
});
|
||||
|
||||
framework.onReady(function (/*newPad*/) {
|
||||
framework.onReady(function (newPad) {
|
||||
editor.focus();
|
||||
|
||||
if (newPad) {
|
||||
colors.updateLocalColors('#000', '#FFF');
|
||||
}
|
||||
|
||||
CodeMirror.setMode('markdown', function () { });
|
||||
Slide.onChange(function (o, n, l) {
|
||||
var slideNumber = '';
|
||||
|
|
Loading…
Reference in New Issue