Collapsible not working on sidebar
filament config has this . resources/js/app.js has this while the css counterpart has this .Ran npm build successfully but the sidebar does not really open up nor close .I would appreciate any leads. I'm using the yepsua plugin for them and i've checked it that it works as expected.Thank you.
Solution:Jump to solution
Okay, I can't tell where this issue is from, but your blade files look broken. So best to remove
vendor/
, reinstall via composer install
and run artisan filament:upgrade
33 Replies
Is your config cached?
artisan config:clear
?Tried that as well but got the same result.
Did you overwrite view files?
I don't think so. Could you just elaborate what it means override the view files ? Sorry for the dumb question.
Have you published views and modified them?
No i din't even publish them.
What is the browser console showing
This is the console.
Okay. Since I didn't see it in the screenshot I though the hamburger icon isn't there.
but the sidebar does not really open up nor closeYou mean the sidebar going from icons to icon and text, right? No console errors when clicking the hamburger icon?
Yes I mean that , and yes there are no errors when clicking on the hamburger icon.
I guess
'width' => '16.6rem',
is the issue. I think you need a valid tailwind class.Weird.Previously it was in pixels and still had the same challenge .
I might be wrong. Not 100% sure on this one. Try removing it and/or check the value on the sidebar.
Okay let me try them and even setting it to null so as to see if it will pick the default width. Thank you for the help.
@Dennis Koch I think it's the hamburger icon that's not showing when the sidebar is collapsed on full screen.
Realized that this piece of code is not really working . Any lead of what could be the issue ?
What does "not relly working" mean?
The humburger does not show on the page when in full screen...When i minimise or move to tablet/mobile view , It shows up.
That's not wrong. It only shows up if the sidebar is width 0
There is another button for toggling the sidebar inside the sidebar header
Let me check it.
Seen it .Everything seems okay.I think probably i touched something that's interfering.
You’re the second person to mention having sidebar issues with this plugin installed. I would reach out to the plug-in developer.
What plugin is it?
Yepsua Themes I think
I tried to hide the topbar and realized that the hamburger was really appearing [ it was being covered by the topbar which spans the whole width ] as in the images below .Noticed that the main content area does not respond to the collapsing/uncollapsing of the sidebar. @Dennis Koch @Dan Harrin Tried to resolve this but i don't just get it.
lodeki has been warned, this is their first warning.
Looks like your sidebar width isn't working properly
I created a sample filament app and compared the view source code for both the apps. This is what i noticed as the difference in the source files.For the app with the error . and for the new sample app . Both config files have 100px as the sidebar width . Could this be related to the error?
You mean source files or source code in the browser? The first one still contains Blade tags
Did a quick hosting on cpanel for both apps then checked the view page source in the browser.
The issue with the first one is the whitespace between first and second
{
before config. It looks like a CSS formatter kicked in and broke your code?I'm using Prettier.
Are you applying prettier to
.blade.php
files in vendor? 🤔I don't this so , reason being I didn't make any modification after installing the plugin.
Solution
Okay, I can't tell where this issue is from, but your blade files look broken. So best to remove
vendor/
, reinstall via composer install
and run artisan filament:upgrade
Okay thank you.
Thank you so much . Your steps resolved the issue.