Problem/Motivation
Drupal Core Status report page content overflows its background for small screen (mobile/tab).
Admin page/path : admin/reports/status

And this is because of single big-word issue. Here cron return as a single big-word.

Proposed resolution
The table CSS generate here from core/themes/seven/css/components/tables.css
and in line 55
td {
padding: 10px 12px;
text-align: left; /* LTR */
}
If we modify this CSS to
td {
padding: 10px 12px;
text-align: left; /* LTR */
word-break: break-all;
}
Then everything works perfectly in desktop/tab/mobile.

Comments
Comment #2
chanchal2002 commentedPlease check and test the patch file.
Comment #3
chanchal2002 commentedComment #4
chanchal2002 commentedComment #5
chanchal2002 commentedComment #6
manjit.singhComment #7
swentel commentedIf you have a patch, you should set it to 'Needs review' so the testbot can run and other people can review the patch.
(I don't necessarily think this is major though, but keeping it on major will definitely get more visibility initially)
Comment #8
star-szrThanks for the patch and report @chanchal2002.
I'm worried that applying this styling to all table cells in Seven will likely have unintended consequences.
Downgrading to normal because it doesn't seem major to me either.
Comment #9
chanchal2002 commentedThanks @swentel
hello @Cottser
If we apply this css for report page only, is this will be better approach !!!
Like, if we add new class system-status-report__status-description to the template file
core/themes/stable/templates/admin/status-report.html.twigin line no 30 andcore/modules/system/templates/status-report.html.twigin line no 32and added new CSS in file
core/themes/stable/css/system/system.admin.cssWorking perfectly for me.
Please check and test the new patch css_fixed-2781031-2.patch
Comment #10
brahmjeet789 commented@chanchal2002 your patch looks fine, i put your patch and it is working fine for me, i have tested on different different browsers on windows like internet explorer,firefox and chrome. Please find attachment for the same.
Comment #11
brahmjeet789 commentedComment #12
star-szrI'm not really sure this is the way to go because it breaks the wording of the other rows. So although it fits on screen it seems like it degrades the usability and readability. Attaching a couple screenshots to demonstrate. This is making me reconsider #2765957: Core installation page content overflows its background (CSS bug) a bit too…
I think this needs further discussion. Perhaps we should only apply this to the cron row or something similar (probably best to do so via a markup manipulation of some kind so that contributed modules could use the same method).
Comment #13
star-szrComment #14
bandanasharma commented@cottser Can we increase the width of the class?
.system-status-report__status-title {
width: 40%; /* right now it is width: 25%; */
}
and also add css for class
.system-status-report {
table-layout: fixed;
word-wrap: break-word;
}
After making these changes, please find the attached screenshot which contains the output.
Comment #15
chernous_dn commentedHi @bandanasharma it is bad solution for small mobile device. Attach screenshot. May be we need update style for mobile, title and text
width: 100%Attach screenshot.Comment #16
manjit.singh@Chernous_dn: Can you create the one screenshot for real status report page ? , As you have created solutions.jpg
From that, i think we can take any decision, Because we have the real values then.
Comment #17
chernous_dn commentedHi @Manjit.Singh Yes sure. Attach screenshot.
Comment #18
manjit.singhThanks.
This looks like a clean way to represent the data. I liked it.
Comment #19
bandanasharma commented@Chernous_dn agree on your point but for solution.png, we will need to change the structure of the page.
Could you please provide code snippet for test_solution.png.
Status report page work is already in progress .
Should we postpone the issue till #665790:Redesign the status report page is completed?
Comment #20
manjit.singhthanks a lot @bandanasharma, i was not aware of this related issue. Lets postponed this until #665790: Redesign the status report page got committed.
Comment #23
tompagabor commentedSince #665790: Redesign the status report page has been commited, we can work on this again.
Comment #24
alioso commentedThe new layout places the manual cron link outside a table at /admin/config/system/cron but the problem remains.
I modified the markup and added a system css file to target the link specifically which solves the issue
Comment #25
alioso commentedComment #27
joginderpc@alioso i had updated the files because previous patch was failed, please check this.
Comment #28
joginderpcComment #30
joginderpcComment #31
alioso commented@joginderpc seems like your fix is failing as well. Not quite sure i understand what the report is spitting out
Comment #32
starshapedAfter discussing this with @phenaproxima and @xjm, I've moved the css to add the word breaks to system.admin.css instead of creating a whole new css file. The test was failing because it was checking that all of system's files were being overridden by Stable, which will not happen because of the backwards compatibility issue.
Comment #33
phenaproximaComment #34
starshapedAttaching screenshot of the cron link with the word break css applied in a mobile device.
Comment #35
starshapedComment #36
phenaproximaThe code in the patch looks perfect.
However...I'm not clear on front-end policy but it is my understanding (quite probably flawed) that we can't change things in Stable? So I'm not certain the patch in #32 can be committed as-is because it changes Stable. I think a front-end maintainer should weigh in here, so I'm tagging this for subsystem maintainer review.
Comment #37
joginderpcComment #38
star-szrWith Stable and Classy, things can be changed if the benefit outweighs the potential risks, and I think that is absolutely the case here. The chance that this change will break things for people is very low and this change will make the page not look broken, yay! :)
I would also consider this a purely additive change since it's styling a brand new class.
However, this change needs to be made in
system.admin.cssin the core system module as well, to ensure that this change is carried forward and will also work for people not using Stable/Classy as a base.Comment #39
starshapedAdded this change to the core system module's system.admin.css file.
Comment #40
starshapedComment #41
phenaproximaLooks like @Cottser's feedback is addressed, so back to RTBC you go.
Comment #43
star-szrCommitted 8434c1a and pushed to 8.4.x. Thanks all!