Problem/Motivation
Various elements within the Olivero theme overflow beyond the "content narrow" layout to span additional grid columns.
If the admin toolbar is in vertical orientation and is open, these elements can overflow (either into sidebar or cause horizontal scrolling).
Steps to reproduce
- Make Olivero the default theme
- Go to any Basic page
- Make sure that some text is added with the quotes or images, videos, etc
- Click on manage and click to change to vertical orientation so admin toolbar is vertical
- Result: Verify the elements overflow when using a small screen
- Expected: Elements should not overflow into sidebar or cause horizontal scrolling
Proposed resolution
CSS updates to adjust overflow.
Remaining tasks
- Create patch
- Review patch
- Test patch
- Commit
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #28 | Screenshot 2024-09-17 at 11.44.01 PM.png | 410.62 KB | saurav-drupal-dev |
| #28 | Screenshot 2024-09-17 at 11.42.53 PM.png | 228.29 KB | saurav-drupal-dev |
| #13 | olivero-3221247-13.patch | 4.14 KB | javi-er |
| #13 | 3221247--13--chrome-after.png | 546.39 KB | javi-er |
| #10 | 3221247--10--chrome-after.png | 562.58 KB | javi-er |
Issue fork drupal-3221247
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
kmonahan commentedMerge request created. Before and after screenshots attached.
Comment #6
kristen polThanks for the MR.
Checked and the patch applies cleanly to 9.3 and 9.4 and with an offset for 10 (see below). Needs testing for all of these so tagging.
Comment #7
Satyajit1990 commentedWorking fine for me after applying patch file
Testing steps :
1. Go to any of the Basic page
2. Make sure that some text is added with the quotes or images, videos etc
3. Now click on manage and click on Horizontal orientation to change as vertical orientation
4. Now the admin toolbar should be in vertical orientation and verify the elements overflow issue in small screen
Version: 9.4.x
Expected : elements should not overflow either in to sidebar, or cause horizontal scrolling
Comment #8
Satyajit1990 commentedComment #9
lauriiiThe screenshot from #7 is from Umami but this issue is against Olivero.
Comment #10
javi-er commentedI tested this merge request and it fixes the issues with the blockquotes, but formatted content is still broken.
I generated the
<pre>tag using the "formatted" paragraph format from the RTF options.before


after
Comment #11
javi-er commentedIn the case of
<pre>tags, maybeoverflow: scrollcould be used, which is a common solution for this issue.Comment #12
kristen polThanks for testing. I've updated the issue summary to use the template and added steps to reproduce based on #7. And, I've removed the "Needs manual testing" tag for now until the patch gets updated.
Comment #13
javi-er commentedAttached is a patch that applies to the merge request (
drupal-3221247/3221247-olivero-various-elements) for adjusting thepreelements alignment, I couldn't find any references in Figma regarding the design / layout ofpre, so I just made sure that it stays inside the container. See screenshot below.Comment #14
javi-er commentedComment #15
kristen polThanks for the updated patch but it's not applying so moving back to needs work.
Comment #16
javi-er commented@kristen-pol, I could add the changes to the same merge request that's that was opened before: https://git.drupalcode.org/project/drupal/-/merge_requests/1737/diffs
The patch is not longer relevant, please ignore it. I'm moving this to "needs review" again.
Comment #17
kristen polThanks for the updated MR(patch). Tagging for testing for 9.4.
Comment #18
kristen polEmbedded before screenshot in issue summary.
Comment #21
gaurav-mathur commentedComment #22
gaurav-mathur commentedPatch #13 not working on drupal 10.1.x-dev.
Comment #23
gaurav-mathur commentedComment #25
marc.bauCan we get a fix committed, please? Still broken in 10.3.2.
Comment #26
marc.bauThis will help with readability of pre fields a lot...
Comment #28
saurav-drupal-dev commentedFixing the Overflow Issue in Drupal with
Comment #29
smustgrave commentedComment #34
quietone commentedThe Olivero theme was approved for removal in #3590816: [policy, no patch] Deprecate Olivero and move to contrib.
This is Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.
The deprecation work is in #3595082: [meta] Tasks to deprecate the Olivero theme and the removal work in #3595085: [meta] Tasks to remove the Olivero theme.