imagej.github.io icon indicating copy to clipboard operation
imagej.github.io copied to clipboard

Resolve funkiness of clear include

Open hinerm opened this issue 3 years ago • 2 comments

If we `{% include clear %} on the same line as other text it appears to break the html: image

When used as intended, it creates a huge amount of whitespace.. and the content attribute is placed as content but I think there are many uses of the include that expect the content to be the clear direction?

image

Should it be refactored to accept directions? Do we even need this include?

hinerm avatar May 21 '21 15:05 hinerm

I think the reason it behaves strangely now is because it interacts badly with the left and right sidebar elements. I'd like to get rid of this include if possible. Or if we decide we absolutely need it, we can research ways to avoid the issues described above.

ctrueden avatar May 25 '21 02:05 ctrueden

Did some playing around and the clear function is generating the extra space due to one or both of the sidebars (depending on the configuration). I originally thought that Firefox was somehow rendering this page correctly, while chrome generated the space, but this was due to different window sizes I had for the two browsers. The smaller the window the smaller the space (based on how the side menus are responding to the screen size).

This stackoverflow answer seems to be what we want to do in principle. I'm going to try it!

elevans avatar May 28 '21 14:05 elevans