monkeytype icon indicating copy to clipboard operation
monkeytype copied to clipboard

Custom blurred background image has white edges

Open 00050 opened this issue 5 years ago • 6 comments

I think, it would be noice to add transform: scale(1.1) to custom blurred background image to get rid of white edges. Without transform: scale(1.1): image With transform: scale(1.1): image

00050 avatar Jul 15 '21 14:07 00050

Hm, i swear when we were implementing this the scale didn't get rid of the border - ill check again.

Miodec avatar Jul 15 '21 14:07 Miodec

Yeah, doesnt work for me

Miodec avatar Jul 15 '21 14:07 Miodec

Screenshot 2021-07-15 at 15 31 05

Miodec avatar Jul 15 '21 14:07 Miodec

I see, must be not working in chrome, but I'm sure there should be a way to fix. I can play with it and let you know if I find something. If not, I will just close this issue.

00050 avatar Jul 15 '21 14:07 00050

This solution seems working. But it requires img html tag. image image Make a wrapper for image that will center image and put image inside and make it size as calc(100% + blur saturation multiplied by twice). This will make white borders outside of view.

Hmm, this looks more difficult than just adding a transform scale to the style. And I'm afraid no one will make such a massive change because of this white border.

00050 avatar Jul 15 '21 14:07 00050

I wouldnt say its a massive change

Miodec avatar Jul 15 '21 15:07 Miodec