Needs work
Project:
Drupal core
Version:
main
Component:
Claro theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2019 at 14:46 UTC
Updated:
2 Apr 2025 at 16:26 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
lauriiiComment #3
sibustephen commentedHi lauriii, I have managed to add a readability approach for screen resolution bigger than 2560px (ultra wide resolutions) do take a look at the approach, attached a screenshot for the same.
Comment #4
ambient.impact@sibustephen While clever, that approach assumes the best approach is to zoom the whole thing in, but what about users that don't want to zoom in everything but have it still be readable/usable? If you were sitting close to the monitor, it probably wouldn't help much if everything was bigger, as you'd still need to scan to the left or right farther than is comfortable.
My workaround (Sass) has been this:
The
@include mediais the include media Sass library, but that can be adapted to vanilla CSS.Comment #5
sibustephen commented@ambient you are right, the solution provided here is that it makes more visible, the patch applied above is setting zoom level to 2, which is only applied for ultra width ports. Have added another patch according to your suggestion here, which works fine as well, do review -
Comment #6
ckrinaComment #7
ckrinaComment #8
KondratievaS commentedTested patch from #5 and now we have too much empty space for desktop resolutions (on screenshot width = 1920px). Also, for mobile content is not centered
Comment #9
KondratievaS commentedComment #10
kostyashupenkoComment #11
kostyashupenkoComment #12
KondratievaS commentedTested patch from #11 and currently we have same width for all desktop resolutions, I hope it is expected result.
Issue for mobile is fixed as well
Comment #13
KondratievaS commentedComment #15
xjmComment #16
ckrinaThanks all for you work on this trying to solve a real problem Claro has! But I'm afraid the solution proposed so far is taking a lot of design assumptions that would need a proper design planning behind it. For example, this is defining a
max-widthof80em, without defining an horizontal grid and without using the already defined variables for spacing. I don't mean a solution like this one doesn't need to happen, but it needs a proper planning taking into account all the possible layouts & components (maybe we need some wider pages).Meanwhile, and since this issue is trying to solve specifically the paragraph length, I would suggest to use the character count. Taking into account the current
line-heightandfont-size, I would saymax-width: 80chwould be the ideal line-length.Comment #17
Vidushi Mehta commentedAdded a patch for the same.
Comment #20
sakthivel m commented#20 Re-roll the patch
Comment #22
ckrinaFor what we're seeing in related issues like #3092296: Improve email address field description at /user/register or #3184667: Node form layout looks awkward on wide screens since #3158854 we can't limit the width of the whole page like this patch is doing: changes should be applied individually to each element.
I just updated the issue summary to make the needed changer more clear. So please, let's rethink the solution without max-widths instead of re-rolling a patch that already has been said won't fix this.
Comment #28
gauravvvv commentedComment #29
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue.
While you are making the above changes, we recommend that you convert this patch to a merge request. Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)
Comment #30
gauravvvv commentedComment #31
smustgrave commentedBased on #22
Sounds like max-width is not the desired solution.
Comment #32
smustgrave commentedCame up as a daily BSI target but still seems #31 applies.