horilla icon indicating copy to clipboard operation
horilla copied to clipboard

remove sidebar reveal on hover

Open vinuv00702 opened this issue 9 months ago • 5 comments

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.

vinuv00702 avatar Feb 17 '25 18:02 vinuv00702

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.

horilla-opensource avatar Feb 18 '25 03:02 horilla-opensource

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?

vinuv00702 avatar Feb 18 '25 17:02 vinuv00702

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

horilla-opensource avatar Feb 19 '25 03:02 horilla-opensource

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?

vinuv00702 avatar Feb 19 '25 06:02 vinuv00702

Hi @vinuv00702,

Sorry for the late response, and thanks again for your patience.

We’ve pushed a commit related to this issue to address the sidebar hover behavior. Please pull the latest code and give it a try. Let us know if the issue persists or if you need help with anything else.

Best Regards, Team Horilla

horilla-opensource avatar May 01 '25 06:05 horilla-opensource

Hi @vinuv00702 ,

We are closing this issue due to inactivity.

It seems that there hasn't been any recent activity or discussion, and we believe it may have been resolved or is no longer relevant.

If you feel this issue is still important and should be addressed, please feel free to reopen it or create a new issue with updated details.

With Regards, Team Horilla

horilla-opensource avatar May 13 '25 11:05 horilla-opensource