Fix CustomFooterModal Appearance

The textarea in the CustomFooterModal was much larger than in the other appearance page modals, and did not use a monospaced font. Turns out the other 2 were explicitly specified in the less. This commit adds a class that can be applied to all these modals for simpler maintenance.

Fixes https://github.com/flarum/core/issues/2865
This commit is contained in:
Alexander Skvortsov 2021-05-14 21:36:06 -04:00
parent c90f05cb94
commit 4436d82c36
4 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ import SettingsModal from './SettingsModal';
export default class EditCustomCssModal extends SettingsModal {
className() {
return 'EditCustomCssModal Modal--large';
return 'EditCustomCssModal TextareaCodeModal Modal--large';
}
title() {

View File

@ -2,7 +2,7 @@ import SettingsModal from './SettingsModal';
export default class EditCustomFooterModal extends SettingsModal {
className() {
return 'EditCustomFooterModal Modal--large';
return 'EditCustomFooterModal TextareaCodeModal Modal--large';
}
title() {

View File

@ -2,7 +2,7 @@ import SettingsModal from './SettingsModal';
export default class EditCustomHeaderModal extends SettingsModal {
className() {
return 'EditCustomHeaderModal Modal--large';
return 'EditCustomHeaderModal TextareaCodeModal Modal--large';
}
title() {

View File

@ -37,7 +37,7 @@
margin-bottom: 15px;
}
.EditCustomCssModal, .EditCustomHeaderModal {
.TextareaCodeModal {
textarea {
font-family: monospace;
line-height: 1;