Skip to content

Load jquery-ui smoothness theme for elFinder#89

Merged
pxpm merged 3 commits into
Laravel-Backpack:mainfrom
jnoordsij:load-jquery-ui
Mar 26, 2026
Merged

Load jquery-ui smoothness theme for elFinder#89
pxpm merged 3 commits into
Laravel-Backpack:mainfrom
jnoordsij:load-jquery-ui

Conversation

@jnoordsij
Copy link
Copy Markdown
Contributor

@jnoordsij jnoordsij commented Mar 25, 2026

WHY

BEFORE - What was wrong? What was happening before this PR?

As css for jquery-ui is not loaded, various UI elements are positioned incorrectly and/or behave incorrectly.
Some examples:

  • the resizer for the side menu is incorrectly placed at the left side rather than right side of the menu
  • the window resizer is incorrectly placed at the bottom left corner of the elFinder window rather than the bottom right corner
  • when trying to drag to select multiple entries (files or folders), no visual identifier appears

These can all be observed on the current demo deployment @ https://demo.backpackforlaravel.com/admin/elfinder#elf_l1_Lw:

image

AFTER - What is happening after this PR?

By adding the css, this all works again, similar to the demo at https://studio-42.github.io/elFinder/#elf_l1_Lw.

For consistency I've also bumped the js to the same (latest) version.

Note: there is some change in icons that all get a border. I've not yet debugged if this is unintentional or can be circumvented in any way, but I don't find it too annoying. I've also not found a 'complete example/demo' leveraging the same theme used here for reference for comparison, that might help if one is to find it.

HOW

How did you achieve that, in technical terms?

The default elFinder setup comes with loading jquery-ui smoothness theme; see for example the demo at https://studio-42.github.io/elFinder/#elf_l1_Lw which has <link type="text/css" rel="stylesheet" href="//code.jquery.com/ui/1.13.2/themes/smoothness/jquery-ui.css"> in the HTML.

In this repo the js file was still loaded, but the css no longer was, causing discrepancies.

Is it a breaking change or non-breaking change?

non-breaking

How can we test the before & after?

compare demo to new version 😉

Comment thread resources/views/common_styles.blade.php
Co-authored-by: Pedro Martins <pxpm88@gmail.com>
@pxpm pxpm merged commit 0ec4d88 into Laravel-Backpack:main Mar 26, 2026
2 checks passed
@jnoordsij jnoordsij deleted the load-jquery-ui branch March 26, 2026 12:51
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

Successfully merging this pull request may close these issues.

2 participants