discourse/app/assets/stylesheets/common/form-kit/_control-composer.scss
Joffrey JAFFEUX c8ccf79545
FIX: supports height/preview form-kit composer (#31121)
- `@height` was supported but not working correctly, this is now fixed
and tested
- `@preview` was not supported, we would always hide the preview in form
kit. You now have control over this, default `false`.
2025-02-03 12:56:20 +01:00

32 lines
511 B
SCSS

.form-kit__control-composer {
// same default effective height (150px) than a text control
height: 189px;
width: 100%;
.d-editor-preview-wrapper {
display: none;
}
&.--preview {
.d-editor-preview-wrapper {
display: block;
}
}
.d-editor-button-bar {
> .btn {
border-radius: 0;
}
}
.d-editor-textarea-wrapper {
@include default-input;
padding: 0 !important;
}
.d-editor-input {
// same padding than a text control
padding: 0.5em;
}
}