New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug toolbar depends to bootstrap for a correct view. #974
Comments
The debugger is a separate module which doesn't affect what css framework the main app is using. |
This is not true. |
The debugger uses its own layout view. It doesn't use |
no other change this is my appAsset namespace frontend\config;
use yii\web\AssetBundle;
class AppAsset extends AssetBundle
{
public $basePath = '@webroot';
public $baseUrl = '@web';
public $css = array(
'jqmobile/jquery.mobile-1.4.0-beta.1.min.css',
'jqmobile/jquery.mobile.theme-1.4.0-beta.1.css',
'jqmobile/jquery.mobile.inline-svg-1.4.0-beta.1.css',
'jqmobile/jquery.mobile.structure-1.4.0-beta.1.min.css',
'css/site.css',
);
public $js = array(
'jqmobile/jquery.mobile-1.4.0-beta.1.min.js',
'js/modernizr.js',
'js/starter.js',
);
public $depends = array(
'yii\web\YiiAsset',
// 'yii\bootstrap\BootstrapAsset',
);
} i commented the bootstrap asset and added Jquery Mobile. |
So the issue is that in debugger view you custom packages are applied. Correct? |
yes, it's not a big problem but i think is good that debuger is indipendent. Now with jquery mobile is not so horrible and i can read everythink but i think that other people can use foundation or other framework and the debug can be unreadeable. |
OK. Overall when running debug module we should remove all app assets. |
or add bootstrap only for debug view. |
Where are you registering your assetbundle? This should be done in the main layout file so that gii can use its own layout and have own asset bundle registered. |
I register my project bundle in main layout. |
Does the HTML code of the debug view contain any js/css files that should be registered by |
I m sure. I register the asset in man only. |
Use the "basic" app as an example. The HTML source of the debug view doesn't contain the "site.css" file in |
I am also unable to reproduce the problem. Can you try reporoduce it on a fresh basic app? |
Cant reproduce it too. Comment all assets in sample app and make simple first page without asset register, make error in php code - all ok with yii error page. |
Closed unless further information about how to reproduce the issue is provided. |
I m very busy tomorrow i send dome info about it |
I am having the same issue and it is very simple why. I disable bootstrap in my config because i compile it with a custom theme:
This is the reason the toolbar looks "ugly". Not a big problem for me either, but would be nice to create a workaround. |
@thelfensdrfer This is caused by #1263 |
i disable bootstrap because i'm using a jquery mobile project.
But debug toolbar need Bootstrap for a good view.
So i think is not good add a css framework dependence to debug toolbar.
The text was updated successfully, but these errors were encountered: