? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
8 Feb 2020

Pull Request for Issue #27536 .

Summary of Changes

Bizarrely bootstrap does not center modals on devices smaller than 567px eg mobile phones

Testing Instructions

Go to the admin dashboard
Reduce viewport width down to a mobile size
Click the "Add module to the dashboard" button at the bottom of the page

Expected result

Horizontally aligned modal

Actual result

Modal aligned to the left

apply the pr run npm i or node build.js --compile-css

avatar brianteeman brianteeman - open - 8 Feb 2020
avatar brianteeman brianteeman - change - 8 Feb 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Feb 2020
Category Administration Templates (admin)
avatar brianteeman brianteeman - change - 8 Feb 2020
The description was changed
avatar brianteeman brianteeman - edited - 8 Feb 2020
avatar richard67 richard67 - test_item - 9 Feb 2020 - Tested successfully
avatar richard67
richard67 - comment - 9 Feb 2020

I have tested this item successfully on 71b426d


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27859.

avatar Quy Quy - test_item - 9 Feb 2020 - Tested successfully
avatar Quy
Quy - comment - 9 Feb 2020

I have tested this item successfully on 71b426d


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27859.

avatar Quy Quy - change - 9 Feb 2020
Status Pending Ready to Commit
avatar Quy
Quy - comment - 9 Feb 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27859.

avatar richard67 richard67 - change - 9 Feb 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-02-09 18:18:42
Closed_By richard67
Labels Added: ?
avatar richard67 richard67 - close - 9 Feb 2020
avatar richard67 richard67 - merge - 9 Feb 2020
avatar richard67
richard67 - comment - 9 Feb 2020

Thanks.

avatar brianteeman
brianteeman - comment - 9 Feb 2020

thanks

avatar chmst
chmst - comment - 9 Feb 2020

I don't agree with this change. I think changes should never be made in the vendor directory but in the overrides.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27859.

avatar brianteeman
brianteeman - comment - 9 Feb 2020

@chmst as far as I understand that is the folder for vendor overrides

avatar richard67
richard67 - comment - 9 Feb 2020

@chmst as far as I understand that is the folder for vendor overrides

Was my understanding, too, but I might be wrong.

avatar Quy
Quy - comment - 9 Feb 2020

@chmst I think you are right. It should have been modified here:
\administrator\templates\atum\scss\blocks\_modals.scss

avatar richard67
richard67 - comment - 9 Feb 2020

@chmst I think you are right. It should have been modified here:
\administrator\templates\atum\scss\blocks\_modals.scss

@brianteeman Could you check and if necessary make a new PR?

avatar brianteeman
brianteeman - comment - 9 Feb 2020

This PR was correct

avatar chmst
chmst - comment - 9 Feb 2020

Your changes are correct.
But the code would be easier maintain if you could do them in scss/blocks/_modals where all the overrides for modals are.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27859.

avatar brianteeman
brianteeman - comment - 9 Feb 2020

That's the problem with us having two different places where code is being overridden. It would be easier to maintain if there was only one place and not two.

avatar infograf768
infograf768 - comment - 10 Feb 2020

It is indeed very confusing where to modify/change stuff for this template.
The question is: are you willing to make a PR to move the code to \administrator\templates\atum\scss\blocks\_modals.scss or not.
If you are not willing to, no problem, I will do.

avatar brianteeman
brianteeman - comment - 10 Feb 2020

If the code is moved then all the code in that vendor folder should be moved as well and the imports removed

avatar brianteeman
brianteeman - comment - 10 Feb 2020

and/or it should be clearly documented when to use the vendor folder

avatar infograf768
infograf768 - comment - 10 Feb 2020

Well, this case is quite clear:
atum vendor modal only deals with jviewport stuff

blocks/modal deals with all specific modal classes. btn, header, body, title, etc.
Therefore .modal-dialog should also be there.

avatar brianteeman
brianteeman - comment - 10 Feb 2020

clear as mud. the logic behind the decision escapes me

avatar infograf768
infograf768 - comment - 10 Feb 2020

The whole way Atum scss are made is indeed clear as mud. The use of svg is a p i t a (see #27864 )
Nevertheless and until someone modifies all of that, let's be consequent with what we have.
Will make PR.

avatar brianteeman
brianteeman - comment - 10 Feb 2020

i dont see how you come to the conclusion that it is in the wrong place

avatar infograf768
infograf768 - comment - 10 Feb 2020

I give up.

avatar N6REJ
N6REJ - comment - 10 Feb 2020

@brianteeman putting modal overrides in modals ( \administrator\templates\atum\scss\blocks\_modals.scss )
makes perfect sense to me. I get that it's confusing but it can be fixed one bite at a time. Lets at least get the ball rolling by putting your pr there.
I hope that makes sense to you.

avatar brianteeman
brianteeman - comment - 10 Feb 2020

Just for clarity - it is not an override

Add a Comment

Login with GitHub to post a comment