mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-15 19:01:04 -04:00
The browser uses the `width` and `height` attributes of the image tag to allocate space on the page for the image. If these aren’t provided then the browser will assume the image takes up no space, until it’s downloaded it and had a look at what the file’s dimensions are. This causes the layout of the page to jump once the image downloads. `149 × 150px` is the native size of the image. But we don’t want it to display at that size, so this commit also adds some extra CSS which keeps it looking the same, namely: - the full width of the 1/4 page column on desktop - the full width of the column minus a `40px` gutter either side on mobile (by using `box-sizing: border-box` the `40px` of padding is subtracted from the 100% width, rather than added to it)