prevent note inner border from desyncing with outer border
This commit is contained in:
@@ -130,6 +130,14 @@ Danbooru.Note = {
|
|||||||
height: $note_box.height() - 2,
|
height: $note_box.height() - 2,
|
||||||
width: $note_box.width() - 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) {
|
scale: function($note_box) {
|
||||||
|
|||||||
@@ -74,7 +74,8 @@ div#note-container {
|
|||||||
|
|
||||||
div.note-box.embedded div.note-box-inner-border {
|
div.note-box.embedded div.note-box-inner-border {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
word-wrap: break-word;
|
display: table-cell;
|
||||||
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user