Adjust alert

- changed type from warning to info
- increased line-height to 120%
This commit is contained in:
David Benque 2024-10-21 15:08:33 +01:00
parent 3f2d8566e1
commit 36be1e7fc9
No known key found for this signature in database
GPG Key ID: 7EC3E5D34DCCC0BF
2 changed files with 2 additions and 4 deletions

View File

@ -297,7 +297,7 @@
.cp-creation-password-warning {
margin-top: 0.4rem;
font-size: 0.75em;
line-height: 100%;
line-height: 120%;
}
}
.cp-creation-settings {

View File

@ -26,8 +26,6 @@ define([
], function ($, Config, Broadcast, Util, Hash, Language, UI, Constants, Feedback, h, Clipboard,
Messages, AppConfig, Pages, NThen, InviteInner, Visible, PadTypes) {
Messages.form_passwordWarning = 'For Forms, you can only set the password during creation. It cannot be changed later.' //XX
var UIElements = {};
var urlArgs = Config.requireConf.urlArgs;
@ -2775,7 +2773,7 @@ define([
// Password
let text;
if (type === 'form') {
text = h('div.cp-creation-password-warning.alert.alert-warning.dismissable', h('span.cp-inline-alert-text', Messages.form_passwordWarning));
text = h('div.cp-creation-password-warning.alert.alert-info.dismissable', h('span.cp-inline-alert-text', Messages.form_passwordWarning));
}
var password = h('div.cp-creation-password', [
UI.createCheckbox('cp-creation-password', Messages.properties_addPassword, false),