JoomGalleryfriends / JG4-dev

Development repository for JoomGallery v4.x
GNU General Public License v3.0
10 stars 6 forks source link

Solve visual problems in image manager #87

Closed MrMusic closed 1 year ago

MrMusic commented 1 year ago

@eumel1602 has reported here that there is a visual problem in the image manager: https://github.com/JoomGalleryfriends/JG4-dev/pull/83#issuecomment-1486721378 In some selectboxes the texts are too long and cause a visual problem. This PR fixes the problem by using the shorter texts as in Joomla itself. See texts in Joomla article manager.

I have tried to change the language constants in the forms/filter_images.xml. Unfortunately, this does not work.

For Category Select Box: The previous text "Type or Select a Category" is loaded via the language constant JGLOBAL_TYPE_OR_SELECT_CATEGORY. This constant is used in line 71 of .../com_categories/layouts/form/field/categoryedit.php. To shorten the text I only see the possibility to redefine the constant JGLOBAL_TYPE_OR_SELECT_CATEGORY in the language file com_joomgallery.ini.

For User select box: For the selection of the owner I used the new constant COM_JOOMGALLERY_FIELDS_SELECT_OWNER in the UserdropdownField.php.

eumel1602 commented 1 year ago

The text now fits into the box, it works! What I also noticed is that when I move the mouse over the selection of the category and access level, the mouse pointer is not displayed. see image. The function is OK with the "CLICK". PXL_20230404_184218893 PXL_20230404_184234258

reni68 commented 1 year ago

That works for me too.

And I also noticed something else. The opening windows look different for me. 87_1 87_2

EDIT: But this is not only the case in the JoomGallery - also with articles and article categories, for example.