]> git.openstreetmap.org Git - rails.git/commit
Add display:block to the editor iframe
authorJosh Lee <jleedev@gmail.com>
Thu, 31 Jul 2025 13:29:26 +0000 (09:29 -0400)
committerGitHub <noreply@github.com>
Thu, 31 Jul 2025 13:29:26 +0000 (09:29 -0400)
commit066b49eb037b2f465f4a1e89d22162a4c8c52e89
treef236129d9fb8130f35b0afc7b88519196abede90
parent038014c0d887c96024288097c38f88f0b93b19fe
Add display:block to the editor iframe

Pressing the down arrow key will sometimes scroll the parent element of the iframe, since it generates an inline box with some whitespace below. This parent element having overflow: hidden meant that it was impossible to scroll deliberately and I would be stuck with a white gutter on the bottom of the viewport for the remainder of my editing session.

Instead of overflow: hidden, give the iframe display: block to avoid generating an inline block.
app/views/site/_id.html.erb