coauthor icon indicating copy to clipboard operation
coauthor copied to clipboard

Not enough space above images in dark mode

Open diomidov opened this issue 3 years ago • 2 comments

What's wrong?

If the last line before an image contains an inline fraction, there are approximately 0 pixels of black space between the fraction and image: image

It looks fine in light mode: image

(well, technically the spacing is exactly the same, but the dark theme has extra white borders around images)

How to Reproduce

Steps to reproduce the behavior, e.g., link to where to see the behavior:

  1. Go to https://coauthor.csail.mit.edu/coauthor-dev/m/nWAS9GooDt4zdELNm

Context

  • Device/OS: Linux
  • Browser: Firefox
  • Coauthor server: CSAIL

diomidov avatar May 31 '21 16:05 diomidov

Do you think I should just make the white border slightly fewer pixels? Or do we want the layout to actually differ between dark and light mode?

edemaine avatar May 31 '21 21:05 edemaine

I'm not sure if "slightly fewer" will be enough. When I first suggested the white outline, I assumed it would be a padding and not a border. That would leave slightly less space for the image, but the spacing would be more consistent between different modes.

diomidov avatar May 31 '21 23:05 diomidov