]> git.openstreetmap.org Git - rails.git/commit
A better way to contrain the width of the message box whilst also allowing it to...
authorHerve Saint-Amand <git@saintamh.org>
Sun, 12 Feb 2017 12:04:43 +0000 (12:04 +0000)
committerHerve Saint-Amand <git@saintamh.org>
Sun, 12 Feb 2017 12:04:43 +0000 (12:04 +0000)
commitfcba1a9857b7a225a5540b08432be876bde8501f
treeff74178290cb8055f9978accd2b6929012f6a780
parent6964c445845831151921ed7de5222204b498f04b
A better way to contrain the width of the message box whilst also allowing it to shrink on narrow displays

Setting a hard "width" it very compatible, but won't squeeze on narrow screens. Setting max-width works well, except in Outlook and Hotmail. We resort to old skool table tricks: a table with width=100%, with 3 columns, only oneof which, the middle one, had content, and a fixed with. This works.
app/views/layouts/notifier.html.erb
app/views/notifier/_message_body.html.erb