]> _ Git - fluidbook-html5.git/commitdiff
fix #1451 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 8 Jun 2017 15:10:01 +0000 (17:10 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 8 Jun 2017 15:10:01 +0000 (17:10 +0200)
js/libs/fluidbook/fluidbook.menu.js
js/libs/fluidbook/menu/fluidbook.chapters.js
style/fluidbook.less

index e63e56a32f957dc05a4f9b438ac5246b7c2f19d5..e8e99b705b5802d6b8d2a068fe8b7b2ac759f297 100644 (file)
@@ -447,6 +447,10 @@ FluidbookMenu.prototype = {
             case 'chapters':
                 w = this.fluidbook.datas.chaptersColMaxWidth * 1.5;
                 fullscreen = (w >= ww * 0.9);
+                if (this.fluidbook.datas.chaptersCascade) {
+                    h = hh * 0.8;
+                    forceHeight=true;
+                }
                 break;
             case 'index':
                 fullscreen = true;
index 5c9e5b8499441b7f64e0051c9c9cc499b3f0aa40..05a8635a2948a17ad24923d72847f3ee73ece7b9 100644 (file)
@@ -97,7 +97,7 @@ FluidbookChapters.prototype = {
         } else if (this.style == 'ina') {
             res += '<li style="background-color:#' + color + ';" data-level="' + chapter.level + '"><a href="#/page/' + p + '" class="nodark level' + chapter.level + '">';
         }
-        res += chapter.label;
+        res += '<span>' + chapter.label + '</span>';
         res += '<div class="right" data-page="' + p + '">';
 
         if (this.style == 'classic') {
index 6dc6900f25d2bb49cbb0fe8691f0764acf567540..8e03a53685b1d918504ff4661cce4d3ef183916b 100644 (file)
@@ -1401,6 +1401,7 @@ ul.chapters {
        }
 
        li {
+               position: relative;
                &[data-level="1"] + [data-level="0"] {
                        margin-top: 15px;
                }
@@ -1452,9 +1453,20 @@ ul.chapters {
                        display: none;
                }
        }
+
+       li > a > span {
+               display: block;
+               padding-right: 30px;
+       }
        .right {
-               float: right;
+               right: 32px;
+               top: 5px;
+               position: absolute;
                display: inline-block;
+               vertical-align: top;
+               width: 25px;
+               height: 25px;
+               text-align: center;
 
                .puce {
                        width: 25px;
@@ -1462,6 +1474,8 @@ ul.chapters {
                        line-height: 17px;
                        padding: 6px;
                        color: #fff;
+                       position: relative;
+                       top: 0px;
                        svg {
                                width: 16px;
                                height: 16px;