Improve styles of wall entry create form (#5936)

* Improve styles of wall entry create form

* Autofocus and display full form of wall stream entry after load by menu
This commit is contained in:
Yuriy Bakhtin 2022-11-21 14:22:58 +04:00 committed by GitHub
parent 1373594b74
commit 605e9dbe5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 1 deletions

View File

@ -221,6 +221,7 @@ humhub.module('content.form', function(module, require, $) {
that.formPanel.find('[data-action-component], [data-ui-widget]').each(function () {
Widget.instance($(this));
});
that.formPanel.find('input[type=text], textarea, .ProseMirror').eq(0).trigger('click').focus();
}).catch(function(e) {
module.log.error(e, true);
loader.reset(that.formPanel);

View File

@ -27,6 +27,25 @@
.form-group, .help-block-error {
margin: 0;
}
.contentForm_options {
.form-group {
margin-bottom: 15px;
.checkbox label {
padding-left: 22px;
input[type=checkbox] {
position: absolute;
top: 4px;
left: 0;
&:focus {
border-color: #ccc !important;
&:checked {
border-color: @info !important;
}
}
}
}
}
}
}
// Empty stream info

File diff suppressed because one or more lines are too long