Skip to content

Commit

Permalink
Support responsive tables (#2084)
Browse files Browse the repository at this point in the history
* Support responsive tables

#2024

* Update DocfxSeedSiteTest.cs
  • Loading branch information
vicancy authored Sep 28, 2017
1 parent b07aba4 commit b0d7c3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/docfx.website.themes/default/styles/docfx.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $(function () {
// Styling for tables in conceptual documents using Bootstrap.
// See http://getbootstrap.com/css/#tables
function renderTables() {
$('table').addClass('table table-bordered table-striped table-condensed');
$('table').addClass('table table-bordered table-striped table-condensed').wrap('<div class=\"table-responsive\"></div>');
}

// Styling for alerts.
Expand Down
4 changes: 2 additions & 2 deletions test/docfx.E2E.Tests/DocfxSeedSiteTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public void TestReferencePage()
Assert.Contains(results[0].Text, title);

// check spec name in parameters' type
element = FindElement(By.XPath("//h4[@id='CatLibrary_Cat_2_op_Addition_CatLibrary_Cat__0__1__System_Int32_']/following-sibling::table/tbody/tr/td"));
element = FindElement(By.XPath("//h4[@id='CatLibrary_Cat_2_op_Addition_CatLibrary_Cat__0__1__System_Int32_']/following-sibling::div/table/tbody/tr/td"));
Assert.NotNull(element);
Assert.Equal("Cat<T, K>", element.Text);

Expand Down Expand Up @@ -347,4 +347,4 @@ private ReadOnlyCollection<IWebElement> FindElements(By by)
return result;
}
}
}
}

0 comments on commit b0d7c3c

Please sign in to comment.