Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

Prevent error messages from overflowing to the left. #225

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

rehno-lindeque
Copy link

When tiling a text-editor next to elm-reactor the error message often gets pushed off the left side of the screen which makes it difficult to read.

This little patch keeps the centered alignment while preventing overflow on the left-hand side.

Before:

overflow-before

After:

overflow-after

( http://stackoverflow.com/a/33455342 explains the margin: auto trick, in case that's helpful )

Thanks!

When tiling a text-editor next to elm-reactor the error message often gets pushed off the left side of the screen which makes it difficult to read.

This little patch keeps the centered alignment while preventing overflow on the left-hand side.

## Before:

![overflow-before](https://cloud.githubusercontent.com/assets/337811/23656919/99a5b1d6-0333-11e7-9e72-8c3b39352e0d.png)

## After:

![overflow-after](https://cloud.githubusercontent.com/assets/337811/23656936/b1c53520-0333-11e7-8c87-b0dcbe19c4e7.png)

( http://stackoverflow.com/a/33455342 explains the `margin: auto` trick )

Thanks!
@process-bot
Copy link

Thanks for the pull request! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants