JoeGandy / ShareX-Custom-Upload

A little PHP script created for uploading custom sharex files to your own webserver
MIT License
166 stars 50 forks source link

Fix text viewer styles #105

Closed theaquarium closed 4 years ago

theaquarium commented 4 years ago

This PR fixes some styling issues introduced with #103. Some CSS modifications from the PR led to the code tag in the text viewer not taking up the entire screen. This was fixed in that PR by adding min-height: 100vh, but that causes issues with files that are very wide but have few lines.

I'm not really sure why these issues were happening, but I wasn't able to find a fix without modifying highlight.js styles. Those stylesheets not just set the entire body to their background color now.

I've also completely removed the line number border, since it seems that there are no other apps that draw this line. Here's what it looks like now:

image

Let me know what you think.