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

ETR - File Browser Update #311

Conversation

wtconsulting
Copy link
Contributor

@wtconsulting wtconsulting commented May 30, 2024

These functions in the FileBrowser / FileViewer are attempting to iterate over the file and image extensions that the user defines in the settings.ini.cfm as filebrowsereditlist etc. However, the iteration is happening over a string.

This image illustrates the issue. Note the "t" in the debug popup where it should be comparing against a whole extension (txt for example).
image

I also updated the CSS to fix the Edit window being cut in half and right justified on the page.
image

Note I made this change in a non-minified JS file. If you need me to minify it or make any updates, I can do that as well. I did test that this resolves the issues.

These functions in the FileViewer are attempting to iterate over the file and image extensions that the user defines in the settings.ini.cfm as filebrowsereditlist etc. However, the iteration is happening over a string.
add same change to isViewable
@CLAassistant
Copy link

CLAassistant commented May 30, 2024

CLA assistant check
All committers have signed the CLA.

Updates the actionwindow wrapper and formwrapper to fix the Edit modal when editing files in the filebrowser.
@@ -144,15 +144,15 @@

#actionwindow-wrapper {
position: absolute;
margin: 60px 30%;
margin: 30px 30px;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would revert this change; the old css makes sure that the popup is always centered in the middle.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jeroenweareorangeeu Reverted, cheers.

revert margin in the actionwindow-wrapper
@guustnieuwenhuis guustnieuwenhuis changed the base branch from main to release/7.4 June 21, 2024 09:14
@guustnieuwenhuis guustnieuwenhuis merged commit 48042a0 into MasaCMS:release/7.4 Jun 21, 2024
1 check passed
@guustnieuwenhuis
Copy link
Contributor

Thank you @wtconsulting!

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.

4 participants