tweaks for the code preview

This commit is contained in:
zadam 2020-04-26 12:06:54 +02:00
parent a1ea2c9115
commit 8f68ff1932
2 changed files with 2 additions and 2 deletions

View File

@ -195,7 +195,7 @@ export default class NoteDetailWidget extends TabAwareWidget {
const noteComplement = await this.tabContext.getNoteComplement();
if (note.hasLabel('readOnly') ||
(noteComplement.content && noteComplement.content.length > 10000)) {
(noteComplement.content && noteComplement.content.length > 30000)) {
type = 'read-only-code';
}
}

View File

@ -13,7 +13,7 @@ const TPL = `
}
</style>
<div class="alert alert-warning no-print">
<div class="alert alert-warning no-print" style="margin-bottom: 0;">
Read only code view is shown. <a href="#" class="edit-note">Click here</a> to edit the note.
</div>