User tests: Successful: Unsuccessful:
Pull Request for Issue #31033 and #30954.
Modified the modal settings for both the "Manage Folders" And "New File" modal windows that appear when you edit a template.
Per the various screen grabs in #31033, you before applying the PR you will have issues on screens under 1400px with the layout being cramped, and on all screens the folder tree when displayed in the modal, the tree extends over the bottom of the modal, meaning the close and/or delete buttons (depending on the screen) are disabled due to the z-index of the folder tree.
Note that the CSS change is required to make the folder tree height correct.
Layout will change so the columns are 4:8 ratio.
With the folder tree height capped proportional to the new height of the modal, the buttons now work.
Check also responsive layout on max-width:768px and below.
Uncommon as it would be for someone to modify the template via mobile, the layout now at least provides the ability to do so if needed.
No documentation changes are needed.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_templates Repository NPM Change |
Labels |
Added:
NPM Resource Changed
?
|
Title |
|
@media (max-width: 768px) {
.modal-title { /* Reduces the modal title to stop it wrapping */
font-size: 1rem;
}
.modal-body .tree-holder { /* Shrinks area for the tree in mobile modal view */
max-height: 12vh;
margin-bottom: 20px;
}
.modal-body .card-body { /* Padding in the card boxes where the filename or folder name is created */
padding: .75rem;
}
.modal-body .col-md-4, .modal-body .col-md-8 { /* Fills the modal wider when the columns stack. */
padding-left: 0;
padding-right: 0;
}
.card-body .mt-2 { /* Reduces the size of the "Maximum Upload size note" */
font-size: 12px;
}
}
Responsive styling improved. I've put in changes specific to these modals, rather than applying it to overall responsive classes in the template, though some of that might need to be considered globally in the template main template.css file.
CSS Comments above are not included in the admin-templates-default.css.
I have tested this item
I still have the problem with the overlapping formfields (see comments)
I have tested this item
I still have the problem with the overlapping formfields (see comments)
I have tested this item
tested again and now it works. I had some trouble with the cache (deleting the browser cache did not solve the problem).
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-10-19 06:16:54 |
Closed_By | ⇒ | HLeithner | |
Labels |
Added:
?
|
Thanks
Further changes are required in admin-templates-default.css to add responsive css to the modal as there's additional layout problems with the modal on smaller screens. That CSS file currently has no breakpoints.
Inspecting the code, I need to add a breakpoint for: breakpoint-md: 768px;