]> git.openstreetmap.org Git - rails.git/commit
Prevent flash messages from expanding offscreen
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 24 Nov 2021 14:26:16 +0000 (14:26 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 24 Nov 2021 14:32:36 +0000 (14:32 +0000)
commitc343f3ed3eca34bd3520b00ff8e55757f59d0866
tree6c991ae04c027b75e37f9b9154a252b7dd8e3916
parentabbd5a30d41945a41ed5c6c2012793e176f8c28a
Prevent flash messages from expanding offscreen

Because we are using an edge-to-edge layout for the flash messages,
the negative margins on the row were expanding the element offscreen.

Bootstrap provides a "no-gutter" class for removing these margins,
but that also drops the spacing between columns which we want to preserve.
So instead we use a margin override on the row only.

Additionally, drop some padding css in favour of a utility class

Fixes #3351

Bug was introduced in 3dd639c8d02677b773935aa982ba0c9f3cc209e5
app/assets/stylesheets/common.scss
app/views/layouts/_flash.html.erb