mirror of
https://github.com/flarum/core.git
synced 2025-07-17 06:41:21 +02:00
Only apply custom CSS and header HTML on forum, not admin
This commit is contained in:
@@ -51,6 +51,10 @@ class WebApp extends AbstractWebApp
|
||||
return $this->formatter->getJs();
|
||||
});
|
||||
|
||||
$view->getCss()->addString(function () {
|
||||
return $this->settings->get('custom_less');
|
||||
});
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
||||
|
@@ -131,10 +131,6 @@ abstract class AbstractWebApp
|
||||
|
||||
$css->addString($lessVariables);
|
||||
$localeCss->addString($lessVariables);
|
||||
|
||||
$css->addString(function () {
|
||||
return $this->settings->get('custom_less');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -1,5 +1,3 @@
|
||||
{!! array_get($forum, 'attributes.headerHtml') !!}
|
||||
|
||||
<div id="app" class="App">
|
||||
|
||||
<div id="app-navigation" class="App-navigation"></div>
|
||||
|
Reference in New Issue
Block a user