mirror of
https://github.com/flarum/core.git
synced 2025-05-06 07:25:22 +02:00
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
29 lines
694 B
JavaScript
29 lines
694 B
JavaScript
import SettingsModal from './SettingsModal';
|
|
|
|
export default class EditCustomCssModal extends SettingsModal {
|
|
className() {
|
|
return 'EditCustomCssModal TextareaCodeModal Modal--large';
|
|
}
|
|
|
|
title() {
|
|
return app.translator.trans('core.admin.edit_css.title');
|
|
}
|
|
|
|
form() {
|
|
return [
|
|
<p>
|
|
{app.translator.trans('core.admin.edit_css.customize_text', {
|
|
a: <a href="https://github.com/flarum/core/tree/master/less" target="_blank" />,
|
|
})}
|
|
</p>,
|
|
<div className="Form-group">
|
|
<textarea className="FormControl" rows="30" bidi={this.setting('custom_less')} />
|
|
</div>,
|
|
];
|
|
}
|
|
|
|
onsaved() {
|
|
window.location.reload();
|
|
}
|
|
}
|