ptpb / pb

pb is a formerly-lightweight pastebin and url shortener
Other
549 stars 52 forks source link

Centering paste areas when lexed #126

Closed HalosGhost closed 9 years ago

HalosGhost commented 9 years ago

cf. this paste

This paste has long lines, and as a result takes up more horizontal space than it would seem is typical. However, the paste area does not account for the extra width to center itself correctly. At a guess, this is because the paste area is shifted right by a static size rather than centering itself dynamically. The result is ugly and not ideal.

A screenshot for simplicity:

b04949bc-56df-4da5-bf98-cb8adb74cf18

buhman commented 9 years ago

Lolbootstrap.

buhman commented 9 years ago

Fixed by 635f974bfbc7b6fce2782d91c29db4385a9d286c