Skip to content

Commit

Permalink
CSS bug in Codeblock if string longer than viewport (#803)
Browse files Browse the repository at this point in the history
* fix #761

* Fixed right marign during refresh

* Backed highlight
  • Loading branch information
stevenjoezhang authored and ivan-nginx committed Apr 4, 2019
1 parent 54b7abf commit 205bd16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions source/css/_common/scaffolding/tables.styl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
-webkit-overflow-scrolling: touch;
}

.highlight .table-container {
margin: 0px;
}

table {
width: $table-width;
border-collapse: collapse;
Expand Down
2 changes: 1 addition & 1 deletion source/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ NexT.utils = NexT.$u = {
$(document).ready(function() {

function wrapTable() {
$('table').not('figure table').wrap('<div class="table-container"></div>');
$('table').wrap('<div class="table-container"></div>');
}

/**
Expand Down

0 comments on commit 205bd16

Please sign in to comment.