Skip to content

Commit 4b119a9

Browse files
authored
Close #2015: Fix bug in ToC's grid markup and make sure code download's dropdown menu is right aligned (#2020)
1 parent 41af04a commit 4b119a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inst/rmd/h/default.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,9 +441,9 @@
441441
<!-- setup 3col/9col grid for toc_float and main content -->
442442
<div class="row">
443443
$if(bs3)$
444-
<div class="col-xs-12 col-sm-4 col-md-3">
445-
$else$
446444
<div class="col-sm-12 col-md-4 col-lg-3">
445+
$else$
446+
<div class="col-xs-12 col-sm-4 col-md-3">
447447
$endif$
448448
$if(toc-title)$
449449
<h2 id="$idprefix$toc-title">$toc-title$</h2>
@@ -472,7 +472,7 @@ <h2 id="$idprefix$toc-title">$toc-title$</h2>
472472
$if(code_menu)$
473473
<div class="btn-group pull-right float-right">
474474
<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>
475-
<ul class="dropdown-menu" style="min-width: 50px;">
475+
<ul class="dropdown-menu dropdown-menu-right" style="min-width: 50px;">
476476
$if(code_folding)$
477477
<li><a id="rmd-show-all-code" href="#">Show All Code</a></li>
478478
<li><a id="rmd-hide-all-code" href="#">Hide All Code</a></li>

0 commit comments

Comments
 (0)