Skip to content
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

remove sidebar reveal on hover #509

Open
vinuv00702 opened this issue Feb 17, 2025 · 4 comments
Open

remove sidebar reveal on hover #509

vinuv00702 opened this issue Feb 17, 2025 · 4 comments

Comments

@vinuv00702
Copy link

I have been trying to make some customizations and found that when the sidebar is minimized and hovered over, it reveals and returns to the same position at first. I wanted it to stay that way when hovered on. I have removed what I thought was the piece of code, but nothing changed.

@horilla-opensource
Copy link
Owner

Hi @vinuv00702 ,

It looks like the sidebar behavior is controlled by the functions sidebarReveal(e) and sidebarToggle(e) in web.frontend.js. Since the frontend is built from this file and then compiled into web.frontend.min.js, you'll need to update these functions in web.frontend.js to modify the hover behavior and compile it.

Suggested Steps:

  1. Modify sidebarReveal(e) and sidebarToggle(e) in web.frontend.js to ensure the sidebar stays expanded when hovered.
  2. Compile the updated web.frontend.js to generate web.frontend.min.js.
  3. Clear cache and test the changes to confirm the behavior is as expected.

@vinuv00702
Copy link
Author

Hi @horilla-opensource ,
Thanks for the response. But isn't web.frontend.js a build file? I assumed as it was found in the build folder. I also found the same functions present in Generic.js inside the src folder within the static folder. Making changes there didn't reflect, which is actually my problem and confusion about what I am doing wrong?

@horilla-opensource
Copy link
Owner

Hi @vinuv00702 ,

Actually, Django loads the web.frontend.min.js file. So, for the update, you need to modify web.frontend.js and then compile it. Try adding the script in this file.

Best Regards,
Team Horilla

@vinuv00702
Copy link
Author

vinuv00702 commented Feb 19, 2025

Hi @horilla-opensource ,
Iam not really sure how to compile it as no details found in doumentation. Run collecstatic but the changes are not relecting in .min file. And i see laravel-mix deendency and package.json in the files which build system is being used?

horilla-opensource added a commit that referenced this issue Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants