bulma icon indicating copy to clipboard operation
bulma copied to clipboard

Negative margin on columns causes overflow on mobile

Open rendaw opened this issue 5 years ago • 7 comments

Since #449 has been closed for 2 years, I'm making this new issue to track the problem.

There was a fix for #449 but it was reverted the same day, and the problem appears to persist since.

Minimalish reproduction:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Hello Bulma!</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
  </head>
  <body>
  <div class="columns"><div class="column">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div></div>
  </body>
</html>

On Chrome devtools the left of the text is cut off.

I might be misusing this, but given by the history of 449 I assume I'm not.

rendaw avatar Jan 14 '20 14:01 rendaw

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 12 '20 14:07 stale[bot]

This appears to be one of those bugs that doesn't go away if you ignore it long enough.

rendaw avatar Jul 12 '20 15:07 rendaw

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 10 '21 14:01 stale[bot]

The issue is still here

dmitrypasyutin avatar Jan 13 '21 12:01 dmitrypasyutin

Still an issue.

A solution is to use:

.columns {
    margin-right: 0;
    margin-left: 0;
@media screen and (min-width: $desktop) {
   margin-right: -0.75rem;
    margin-left: -0.75rem;
}
}

Then

AndLeeDavis avatar Apr 15 '21 09:04 AndLeeDavis

You can fix this issue by making sure you always use columns within a <section class="section"> parent e.g.

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Hello Bulma!</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
  </head>
  <body>
  <section class="section>
    <div class="columns"><div class="column">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div></div>
  </section>
  </body>
</html>

laurensV avatar Dec 14 '21 11:12 laurensV

Still an issue

highoncarbs avatar Feb 09 '23 12:02 highoncarbs