Skip to content

Commit

Permalink
Close #2015: Fix bug in ToC's grid markup and make sure code download…
Browse files Browse the repository at this point in the history
…'s dropdown menu is right aligned (#2020)
  • Loading branch information
cpsievert authored Jan 26, 2021
1 parent 41af04a commit 4b119a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inst/rmd/h/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,9 @@
<!-- setup 3col/9col grid for toc_float and main content -->
<div class="row">
$if(bs3)$
<div class="col-xs-12 col-sm-4 col-md-3">
$else$
<div class="col-sm-12 col-md-4 col-lg-3">
$else$
<div class="col-xs-12 col-sm-4 col-md-3">
$endif$
$if(toc-title)$
<h2 id="$idprefix$toc-title">$toc-title$</h2>
Expand Down Expand Up @@ -472,7 +472,7 @@ <h2 id="$idprefix$toc-title">$toc-title$</h2>
$if(code_menu)$
<div class="btn-group pull-right float-right">
<button type="button" class="btn btn-default btn-xs btn-secondary btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span>Code</span> <span class="caret"></span></button>
<ul class="dropdown-menu" style="min-width: 50px;">
<ul class="dropdown-menu dropdown-menu-right" style="min-width: 50px;">
$if(code_folding)$
<li><a id="rmd-show-all-code" href="#">Show All Code</a></li>
<li><a id="rmd-hide-all-code" href="#">Hide All Code</a></li>
Expand Down

0 comments on commit 4b119a9

Please sign in to comment.