-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[4.0] [com_associations] Improving display of the sidebyside page #27111
Conversation
On phone, remove the margin under |
If I remove it then the item fields will NOT be aligned. |
That part is easy to solve. Will do tomorrow. |
5596396
to
e02b392
Compare
@Quy Done |
I did not tested deeply, but I assume the problem with "change" event triggering (it does not triggers), that event is expected by joomla-cms/build/media_source/com_associations/js/associations-edit.es6.js Lines 158 to 160 in 83b540e
The event should be triggered somewhere here: joomla-cms/build/media_source/com_associations/js/sidebyside.es5.js Lines 26 to 75 in 83b540e
In Joomla 3 there an explicit call of |
@Fedik Example code:
in 4.0 line 41 on
and further down similar code |
this creepy thing is for remove Chosen, just ignore it
this to reset a value, and to trigger "change", hmm I think something like:
(Instead of what you seen in joomla 4 That a bit dirty, because a whole |
@Fedik Line is |
hm, that sounds like I will try to look more, on the week |
Thanks. I guess that if you can solve, it would be better to create a new PR and ping me. To help, this is what we get in 3.x when using the Clear button. The association is cleared from the reference. |
@Quy |
I have tested this item ✅ successfully on f92b2f1 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27111. |
@infograf768 I made a separated pull for that #27159 |
@Fedik |
@infograf768 In summary of changes section of description I think there is a typo:
I think you meant mobile view. Is that right? |
@infograf768 In a size short before mobile view - let me call it tablet view ;-) - it still does not look nice here: It would look better if the left and right article would be aligned at the top. Not sure if that is possible, and not sure if what I see is correct. I mean I have done npm after applying the patch and have cleared broswer cache, but who kows, maybe that was not enough. Does it look the same for you with such a width? Other question: I've noticed that since a few days when I install multilingual sample data, the English (GB) content is missing, only German and French content exists and is associated. Can you confirm that? |
5d011b5
to
d0f20dd
Compare
@Quy @richard67 Please test again. (Looking into the multingual sample data question, unrelated to this patch) |
@richard67 |
concerning sampledata, see #27179 |
I have tested this item ✅ successfully on bb40f8c This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27111. |
1 similar comment
I have tested this item ✅ successfully on bb40f8c This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27111. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27111. |
Thanks! |
See discussion #26945 (comment)
Summary of Changes
Moving the Target language field and buttons below the Target title preventing display of the language field with width to 100% until getting to mobile view.
This also aligns the item fields when using the same tab.
Correcting wrong js file name in the Association Field.
RTL css added
Testing Instructions
Create a multilingual site using the multilingual sample data module
Display the com_associations side by side page.
Reduce window to mobile size
Switch to RTL and check again
Before patch
After patch
Important Note
Independent from this PR.
The Clear button is not acting as it correctly does in 3.x.
It should not only clear the existing association itself in the Reference but also reload the Target with empty item fields.
@dgrammatiko @Fedik