prevent note inner border from desyncing with outer border

This commit is contained in:
r888888888
2015-02-02 17:50:38 -08:00
parent c32de220fa
commit 90dca08f38
2 changed files with 10 additions and 1 deletions

View File

@@ -130,6 +130,14 @@ Danbooru.Note = {
height: $note_box.height() - 2,
width: $note_box.width() - 2
});
if ($inner_border.width() >= $note_box.width() - 2) {
$note_box.width($inner_border.width() + 2);
}
if ($inner_border.height() >= $note_box.height() - 2) {
$note_box.height($inner_border.height() + 2);
}
},
scale: function($note_box) {

View File

@@ -74,7 +74,8 @@ div#note-container {
div.note-box.embedded div.note-box-inner-border {
text-align: center;
word-wrap: break-word;
display: table-cell;
vertical-align: middle;
}
}