diff --git a/scss/_pager.scss b/scss/_pager.scss index 4aab5b1..f276211 100644 --- a/scss/_pager.scss +++ b/scss/_pager.scss @@ -26,17 +26,24 @@ width: 100%; // min-width: 75%; display: flex; + height: 36px; + max-width: calc(50vw - 10px); + + .caption { + overflow-x: hidden; + } } - .btn.left { + .btn.left .caption { justify-content: flex-start; } - .btn.right { + .btn.right .caption { justify-content: flex-end; } span.svg-icon { margin-top: 1px; + flex: 0 0 20px; } } diff --git a/templates/page.hbs b/templates/page.hbs index 4e0ca08..a0cf926 100644 --- a/templates/page.hbs +++ b/templates/page.hbs @@ -28,10 +28,10 @@ {{#if siblings}}
- -
{{#if siblings.first}}{{icon 'angle-double-left'}} {{#if siblings.firstCaption}}{{siblings.firstCaption}}{{else}}Newest{{/if}}{{/if}}
-
{{#if siblings.last}}{{#if siblings.lastCaption}}{{siblings.lastCaption}}{{else}}Oldest{{/if}} {{icon 'angle-double-right'}}{{/if}}
- + +
{{#if siblings.first}}{{icon 'angle-double-left'}}{{#if siblings.firstCaption}}{{siblings.firstCaption}}{{else}}Newest{{/if}}{{/if}}
+
{{#if siblings.last}}{{#if siblings.lastCaption}}{{siblings.lastCaption}}{{else}}Oldest{{/if}}{{icon 'angle-double-right'}}{{/if}}
+
{{/if}}